Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Szer committed Jun 14, 2024
1 parent f1066e4 commit b2567b1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
with:
global-json-file: global.json
- name: Tests
run: dotnet test -c Release --logger trx --results-directory TestResults
run: dotnet test -c Release --logger "trx;LogFileName=test-results.trx"

# upload test results
- name: Upload dotnet test results
Expand All @@ -29,9 +29,10 @@ jobs:
if: ${{ always() }}

# report test results
- uses: dorny/test-reporter@v1
- name: Report test results
uses: dorny/test-reporter@v1
with:
artifact: TestResults
artifact: test-results
name: .NET Tests
path: '*.trx'
reporter: dotnet-trx
9 changes: 5 additions & 4 deletions .github/workflows/deploy-azure-acr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
with:
global-json-file: global.json
- name: Tests
run: dotnet test -c Release --logger trx --results-directory TestResults
run: dotnet test -c Release --logger "trx;LogFileName=test-results.trx"

# upload test results
- name: Upload dotnet test results
Expand All @@ -37,10 +37,11 @@ jobs:
# Use always() to always run this step to publish test results when there are test failures
if: ${{ always() }}

# report test results
- uses: dorny/test-reporter@v1
# report test results
- name: Report test results
uses: dorny/test-reporter@v1
with:
artifact: TestResults
artifact: test-results
name: .NET Tests
path: '*.trx'
reporter: dotnet-trx
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
flyway.conf
*sln.DotSettings.user
TestResults
*.trx

0 comments on commit b2567b1

Please sign in to comment.