Skip to content

Commit 99a05d7

Browse files
Update github-actions-ci.yaml
1 parent 619608a commit 99a05d7

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

.github/workflows/github-actions-ci.yaml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
jobs:
1010
build:
1111
runs-on: ubuntu-latest
12+
permissions:
13+
checks: write
14+
pull-requests: write
1215
services:
1316
sqlserver:
1417
image: mcr.microsoft.com/mssql/server:2022-latest
@@ -47,15 +50,18 @@ jobs:
4750
sudo apt-get install -y mssql-tools
4851
echo "/opt/mssql-tools/bin" >> $GITHUB_PATH
4952
50-
- name: Install JUnit logger
51-
run: dotnet tool install --global JUnitXml.TestLogger
52-
shell: bash
53-
5453
- name: Run tests
5554
run: dotnet test PosInformatique.Testing.Databases.sln --configuration Release --no-build --logger "trx;LogFileName=test_results.trx" --results-directory ./TestResults
5655
env:
5756
SQL_SERVER_UNIT_TESTS_CONNECTION_STRING: "Data Source=localhost,1433;Database=master;User Id=sa;Password=P@ssw0rd12345!;TrustServerCertificate=True;"
5857
SQL_SERVER_UNIT_TESTS_OTHER_DATA_PATH: "/tmp/other_databases_path"
58+
59+
- name: Publish Test Results
60+
uses: EnricoMi/publish-unit-test-result-action@v2
61+
if: (!cancelled())
62+
with:
63+
files: |
64+
TestResults/**/*.xml
5965
6066
build-samples:
6167
runs-on: windows-latest

0 commit comments

Comments
 (0)