ci: Publish test results in prs (#1665)

Now when the test run,  the results are published to github PR.  Failures are annotated where they happen.
This commit is contained in:
Paul Pacheco 2020-04-06 08:25:07 -05:00 committed by GitHub
parent 52e91e7d1e
commit 51743badff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,13 +73,20 @@ jobs:
args: -runTests -testPlatform playmode -testResults Tests/playmode-results.xml -enableCodeCoverage -coverageResultsPath Tests args: -runTests -testPlatform playmode -testResults Tests/playmode-results.xml -enableCodeCoverage -coverageResultsPath Tests
# Upload artifacts # Upload artifacts
- name: Publish test results - name: Archive test results
uses: actions/upload-artifact@v1 uses: actions/upload-artifact@v1
if: always() if: always()
with: with:
name: Test results (editor mode) name: Test results (editor mode)
path: Tests path: Tests
- name: Publish test results
uses: MirrorNG/nunit-reporter@1.0.1
if: always()
with:
path: "Tests/*.xml"
access-token: ${{ secrets.GITHUB_TOKEN }}
- name: SonarQube analysis - name: SonarQube analysis
if: always() if: always()
uses: MirrorNG/unity-runner@2.0.0 uses: MirrorNG/unity-runner@2.0.0