forked from JetBrains/gradle-grammar-kit-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (34 loc) · 1.23 KB
/
test-report.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Test Report
run-name: >
Test Report for ${{ github.event.workflow.name }}
#${{ github.event.workflow_run.run_number }}:
${{ github.event.workflow_run.display_title }}
on:
workflow_run:
workflows: [Build]
types: [completed]
jobs:
report:
name: Test Report
runs-on: ubuntu-latest
steps:
# We have to clone the repo as the test-reporter otherwise runs into an error.
# See https://github.com/dorny/test-reporter/issues/131#issuecomment-2093880211
- name: Fetch Sources
uses: actions/checkout@v4
# We have to manually download the artifact because dorny/test-reporter@v1
# does not support artifacts uploaded by actions/upload-artifact@v4.
# See https://github.com/dorny/test-reporter/issues/343
- name: Download Test Reports
uses: actions/download-artifact@v4
with:
pattern: test-results-*
run-id: ${{ github.event.workflow_run.id }}
github-token: ${{ github.token }}
- name: Publish Test Reports as Annotations
uses: dorny/test-reporter@v1
with:
name: "Unit Tests Report"
path: "test-results-*/test-results/*/TEST-*.xml"
reporter: java-junit
fail-on-empty: false