-
Notifications
You must be signed in to change notification settings - Fork 422
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6422 from bdach/fix-ci
Fix CI test report workflow
- Loading branch information
Showing
1 changed file
with
22 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,30 +5,40 @@ | |
name: Annotate CI run with test results | ||
on: | ||
workflow_run: | ||
workflows: ["Continuous Integration"] | ||
workflows: [ "Continuous Integration" ] | ||
types: | ||
- completed | ||
|
||
permissions: | ||
contents: read | ||
actions: read | ||
checks: write | ||
|
||
jobs: | ||
annotate: | ||
name: Annotate CI run with test results | ||
runs-on: ubuntu-latest | ||
if: ${{ github.event.workflow_run.conclusion != 'cancelled' }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: | ||
- { prettyname: Windows, configuration: Debug } | ||
- { prettyname: macOS, configuration: Debug } | ||
- { prettyname: Linux, configuration: Debug } | ||
- { prettyname: Linux, configuration: Release } | ||
threadingMode: ['SingleThread', 'MultiThreaded'] | ||
timeout-minutes: 5 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: ${{ github.event.workflow_run.repository.full_name }} | ||
ref: ${{ github.event.workflow_run.head_sha }} | ||
|
||
- name: Download results | ||
uses: actions/download-artifact@v4 | ||
with: | ||
pattern: osu-framework-test-results-* | ||
merge-multiple: true | ||
run-id: ${{ github.event.workflow_run.id }} | ||
github-token: ${{ github.token }} | ||
|
||
- name: Annotate CI run with test results | ||
uses: dorny/[email protected] | ||
with: | ||
artifact: osu-framework-test-results-${{matrix.os.prettyname}}-${{matrix.threadingMode}}-${{matrix.os.configuration}} | ||
name: Test Results (${{matrix.os.prettyname}}, ${{matrix.threadingMode}}, ${{matrix.os.configuration}}) | ||
name: Results | ||
path: "*.trx" | ||
reporter: dotnet-trx | ||
list-suites: 'failed' | ||
|