Test Report #331
This file contains hidden or 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
| name: Test Report | |
| # Fork-safe report path for pull requests only (fork PR runs have a read-only token, | |
| # no checks: write). Push and scheduled runs publish the same report inline via the | |
| # 'report' job in build-test.yml (publish-report: true), before any release job. | |
| on: | |
| workflow_run: | |
| workflows: ['Pull Request'] | |
| types: | |
| - completed | |
| permissions: | |
| contents: read | |
| actions: read | |
| checks: write | |
| jobs: | |
| report: | |
| runs-on: ubuntu-latest | |
| name: Report | |
| if: >- | |
| github.event.workflow_run.conclusion == 'success' | |
| || github.event.workflow_run.conclusion == 'failure' | |
| steps: | |
| - name: Publish unified test report | |
| uses: dorny/test-reporter@v3 | |
| with: | |
| artifact: test-results | |
| name: Test results | |
| report-title: 'ALCops Test Results' | |
| path: '**/*.trx' | |
| reporter: dotnet-trx | |
| use-actions-summary: 'false' | |
| list-suites: 'failed' | |
| list-tests: 'failed' | |
| collapsed: 'never' | |
| fail-on-error: true | |
| fail-on-empty: true |