1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-15 17:17:26 +08:00
osu-lazer/.github/workflows/report-nunit.yml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

46 lines
1.4 KiB
YAML
Raw Normal View History

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:
2024-11-07 17:15:54 +08:00
workflows: [ "Continuous Integration" ]
2021-06-15 20:59:18 +08:00
types:
- completed
2024-11-07 17:15:54 +08:00
permissions:
contents: read
actions: read
checks: write
2021-06-15 20:59:18 +08:00
jobs:
annotate:
name: Annotate CI run with test results
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion != 'cancelled' }}
timeout-minutes: 5
2021-06-15 20:59:18 +08:00
steps:
2024-11-07 17:15:54 +08:00
- 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-test-results-*
merge-multiple: true
run-id: ${{ github.event.workflow_run.id }}
github-token: ${{ github.token }}
2021-06-15 20:59:18 +08:00
- name: Annotate CI run with test results
uses: dorny/test-reporter@v1.8.0
2021-06-15 20:59:18 +08:00
with:
2024-11-07 17:15:54 +08:00
name: Results
2021-06-15 20:59:18 +08:00
path: "*.trx"
reporter: dotnet-trx
2021-10-14 23:25:59 +08:00
list-suites: 'failed'
list-tests: 'failed'