Define separate job to collect test results from all environments.

This commit is contained in:
Kenneth Hsu
2021-02-06 15:06:54 -08:00
parent 2a8e58ed5e
commit 39ea8f04ab
+20 -1
View File
@@ -48,9 +48,28 @@ jobs:
nuget install NUnit.Runners -Version 3.12.0 -OutputDirectory nunit
nunit/NUnit.ConsoleRunner.3.12.0/tools/nunit3-console.exe Duplicati/UnitTest/bin/Release/Duplicati.UnitTest.dll --where:cat==Utility --result="TestResults/test_results_${{ matrix.os }}.xml"
- name: Upload Unit Test Results
if: always()
uses: actions/upload-artifact@v2
with:
name: Unit Test Results
path: TestResults
report-test-results:
name: Report Unit Test Results
needs: test
runs-on: ubuntu-latest
if: always()
steps:
- name: Download Artifacts
uses: actions/download-artifact@v2
with:
name: Unit Test Results
path: TestResults
- name: Report Unit Test Results
uses: MirrorNG/nunit-reporter@v1.0.11
if: always()
with:
path: TestResults/**/*.xml
reportTitle: Unit Test Results