Skip to content

Commit c9cae1a

Browse files
committed
ci: collect test reports
1 parent 74da2fa commit c9cae1a

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -137,18 +137,16 @@ jobs:
137137
9.0.x
138138
139139
- name: 🧪 Run unit tests
140-
run: dotnet test -c release -p:VSTestUseMSBuildOutput=false --verbosity normal --logger trx --results-directory TestResults --collect "XPlat Code Coverage"
140+
run: dotnet test -c release -p:VSTestUseMSBuildOutput=false --logger "trx"
141141

142-
- name: Test Reports
143-
uses: bibipkins/dotnet-test-reporter@v1.4.1
144-
if: always()
142+
- name: Test Report
143+
uses: dorny/test-reporter@v1
144+
if: success() || failure()
145145
with:
146-
github-token: ${{ secrets.GITHUB_TOKEN }}
147-
comment-title: "Unit Test Results"
148-
results-path: ./TestResults/*.trx
149-
coverage-path: ./TestResults/**/coverage.cobertura.xml
150-
coverage-type: cobertura
151-
coverage-threshold: 0.00
146+
name: Tests
147+
reporter: dotnet-trx
148+
list-tests: failed
149+
path: '**/*.trx'
152150

153151
- name: 📛 Upload hang- and crash-dumps on test failure
154152
if: failure()

0 commit comments

Comments
 (0)