Report test results #534
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json | |
name: Report test results | |
# HACK: the "on-push-pr" workflow gets run with read-only perms. | |
# This workflow will run in our repo with write permissions after | |
# the PR checks are done running. | |
on: | |
workflow_run: | |
workflows: | |
- On push to master branch | |
- On push to a secondary branch | |
- On push to a PR | |
types: [completed] | |
jobs: | |
report-test-results: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Report test results | |
uses: dorny/test-reporter@31a54ee7ebcacc03a09ea97a7e5465a47b84aea5 # v1.9.1 | |
with: | |
name: Test results | |
artifact: test-results | |
path: test-results.trx | |
fail-on-error: false | |
reporter: dotnet-trx |