Skip to content

Commit c8e3cca

Browse files
committed
Make the tests run but not failt the build
1 parent f9ab8d3 commit c8e3cca

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/github-actions-tests-on-windows.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,17 @@ jobs:
2020
- name: Build
2121
run: dotnet build --configuration Debug --no-restore
2222
- name: Test
23-
run: dotnet test --no-build --no-restore --verbosity normal --filter Category=CI
23+
id: test
24+
continue-on-error: true
25+
run: dotnet test --no-build --no-restore --verbosity normal --filter Category=CI --logger "trx;LogFileName=test-results.trx"
26+
- name: Publish Test Results
27+
uses: EnricoMi/publish-unit-test-result-action/windows@v2
28+
if: always()
29+
with:
30+
files: '**/test-results.trx'
31+
check_name: 'Test Results'
32+
- name: Check Test Results
33+
if: steps.test.outcome == 'failure'
34+
run: |
35+
echo "::warning::Tests failed"
36+
exit 1

0 commit comments

Comments
 (0)