forked from testcontainers/testcontainers-dotnet
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Publish test results with the dorny/test-reporter GitHub action
So that test results are available at a glance in the GitHub action run page. Also give a proper name to the trx files in order to understand the test results, see microsoft/vstest#1876 (comment)
- Loading branch information
Showing
4 changed files
with
40 additions
and
2 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,30 @@ | ||
name: 'Test Report' | ||
|
||
on: | ||
workflow_run: | ||
workflows: ['Continuous Integration & Delivery'] | ||
types: | ||
- completed | ||
|
||
permissions: | ||
contents: read | ||
actions: read | ||
checks: write | ||
|
||
jobs: | ||
report: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ ubuntu-22.04, windows-2022 ] | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Publish ${{ matrix.os }} Test Results | ||
uses: dorny/test-reporter@v1 | ||
with: | ||
artifact: ${{ matrix.os }} | ||
name: Test Results (${{ matrix.os }}) | ||
path: '*.trx' | ||
reporter: dotnet-trx |
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