-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rework test reporter for public PRs (#78)
This allows PRs from forks to succeed and post test results with appropriate security rights.
- Loading branch information
1 parent
6d4474f
commit 7de4e17
Showing
2 changed files
with
46 additions
and
9 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: 'Test Report' | ||
on: | ||
workflow_run: | ||
workflows: | ||
- Build | ||
types: | ||
- completed | ||
permissions: | ||
contents: read | ||
actions: read | ||
checks: write | ||
jobs: | ||
report: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
framework: ["net6.0", "net7.0"] | ||
disable: ["HWIntrinsics", "SSSE3", "BMI2", "Noop"] | ||
steps: | ||
- uses: dorny/test-reporter@v1 | ||
with: | ||
artifact: test-results-${{ matrix.framework }}-${{ matrix.disable }} | ||
name: Unit Tests ${{ matrix.framework }} ${{ matrix.disable }} | ||
path: '**/results.trx' # Path to test results (inside artifact .zip) | ||
reporter: dotnet-trx | ||
report-windows: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: dorny/test-reporter@v1 | ||
with: | ||
artifact: test-results-windows-x64 | ||
name: Unit Tests Windows x64 | ||
path: '**/results-x64.trx' # Path to test results (inside artifact .zip) | ||
reporter: dotnet-trx | ||
- uses: dorny/test-reporter@v1 | ||
with: | ||
artifact: test-results-windows-x86 | ||
name: Unit Tests Windows x86 | ||
path: '**/results-x86.trx' # Path to test results (inside artifact .zip) | ||
reporter: dotnet-trx |