Skip to content

Commit 2b50002

Browse files
committed
ci: 👷 update build.yml to run test report even if tests fail
1 parent 0b98824 commit 2b50002

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

‎.github/workflows/build.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,18 @@ jobs:
3131
- name: Build
3232
run: dotnet build --no-restore
3333
- name: Test
34+
id: test
3435
run: dotnet test --no-build --logger trx --collect "XPlat Code Coverage"
36+
continue-on-error: true
3537
- name: Test report
36-
uses: bibipkins/[email protected]
38+
if: ${{ !cancelled() }}
39+
uses: bibipkins/[email protected]
3740
with:
3841
github-token: ${{ secrets.GITHUB_TOKEN }}
3942
comment-title: Test results
4043
results-path: ./**/TestResults/*.trx
4144
coverage-path: ./**/TestResults/coverage*.xml
42-
coverage-threshold: 80
45+
coverage-threshold: 80
46+
- name: Fail if any step has failed
47+
if: ${{ failure() }}
48+
run: exit 1

0 commit comments

Comments
 (0)