1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 21:27:24 +08:00
osu-lazer/.github/workflows/report-nunit.yml
Bartłomiej Dach 6c95b1d90d
Bump dorny/test-reporter action to 1.6.0
The only reason I'm bothering to do this is that I mistakenly clicked on
one of the execution logs of the "Annotate CI with test results"
workflow and noticed a bunch of deprecation warnings:

	https://github.com/ppy/osu/actions/runs/3610166871

Judging from the release notes [[1]] and diffstat [[2]] of version 1.6.0
of the action affected, a bump should silence these.

[1]: https://github.com/dorny/test-reporter/blob/main/CHANGELOG.md
[2]: https://github.com/dorny/test-reporter/compare/v1.4.2...v1.6.0
2022-12-03 21:59:57 +01:00

39 lines
1.3 KiB
YAML

# 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
permissions: {}
jobs:
annotate:
permissions:
checks: write # to create checks (dorny/test-reporter)
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']
timeout-minutes: 5
steps:
- name: Annotate CI run with test results
uses: dorny/test-reporter@v1.6.0
with:
artifact: osu-test-results-${{matrix.os.prettyname}}-${{matrix.threadingMode}}
name: Test Results (${{matrix.os.prettyname}}, ${{matrix.threadingMode}})
path: "*.trx"
reporter: dotnet-trx
list-suites: 'failed'
list-tests: 'failed'