2021-06-15 20:59:18 +08:00
|
|
|
# This is a workaround to allow PRs to report their coverage. This will run inside the base repository.
|
|
|
|
# See:
|
|
|
|
# * https://github.com/dorny/test-reporter#recommended-setup-for-public-repositories
|
|
|
|
# * https://docs.github.com/en/actions/reference/authentication-in-a-workflow#permissions-for-the-github_token
|
|
|
|
name: Annotate CI run with test results
|
|
|
|
on:
|
|
|
|
workflow_run:
|
|
|
|
workflows: ["Continuous Integration"]
|
|
|
|
types:
|
|
|
|
- completed
|
2022-09-26 00:03:13 +08:00
|
|
|
permissions: {}
|
2021-06-15 20:59:18 +08:00
|
|
|
jobs:
|
|
|
|
annotate:
|
2022-09-26 00:03:13 +08:00
|
|
|
permissions:
|
|
|
|
checks: write # to create checks (dorny/test-reporter)
|
|
|
|
|
2021-06-15 20:59:18 +08:00
|
|
|
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 }
|
|
|
|
- { prettyname: macOS }
|
|
|
|
- { prettyname: Linux }
|
|
|
|
threadingMode: ['SingleThread', 'MultiThreaded']
|
2021-06-23 23:55:40 +08:00
|
|
|
timeout-minutes: 5
|
2021-06-15 20:59:18 +08:00
|
|
|
steps:
|
|
|
|
- name: Annotate CI run with test results
|
2022-12-04 04:59:57 +08:00
|
|
|
uses: dorny/test-reporter@v1.6.0
|
2021-06-15 20:59:18 +08:00
|
|
|
with:
|
|
|
|
artifact: osu-test-results-${{matrix.os.prettyname}}-${{matrix.threadingMode}}
|
|
|
|
name: Test Results (${{matrix.os.prettyname}}, ${{matrix.threadingMode}})
|
|
|
|
path: "*.trx"
|
|
|
|
reporter: dotnet-trx
|
2021-10-14 23:25:59 +08:00
|
|
|
list-suites: 'failed'
|
|
|
|
list-tests: 'failed'
|