Skip to content

Commit 2651530

Browse files
committed
Split test workflows into two files
1 parent 1765c2a commit 2651530

File tree

2 files changed

+24
-26
lines changed

2 files changed

+24
-26
lines changed

.github/workflows/report-tests.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Report test results
2+
on:
3+
workflow_run:
4+
workflows: [Test]
5+
types: [completed]
6+
7+
permissions:
8+
checks: write
9+
10+
jobs:
11+
checks:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Download Test Report
15+
uses: dawidd6/action-download-artifact@v2
16+
with:
17+
name: junit-test-results
18+
workflow: ${{ github.event.workflow.id }}
19+
run_id: ${{ github.event.workflow_run.id }}
20+
- name: Publish Test Report
21+
uses: mikepenz/action-junit-report@v3
22+
with:
23+
commit: ${{github.event.workflow_run.head_sha}}
24+
report_paths: '**/build/test-results/test/TEST-*.xml'

.github/workflows/tests.yml

-26
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ name: Test
22
on:
33
- pull_request
44
- push
5-
65
jobs:
76
test:
87
name: Build and Run Tests
@@ -27,28 +26,3 @@ jobs:
2726
path: '**/build/test-results/test/TEST-*.xml'
2827
fail_on_failure: true
2928
retention-days: 1
30-
---
31-
name: report
32-
on:
33-
workflow_run:
34-
workflows: [test]
35-
types: [completed]
36-
37-
permissions:
38-
checks: write
39-
40-
jobs:
41-
checks:
42-
runs-on: ubuntu-latest
43-
steps:
44-
- name: Download Test Report
45-
uses: dawidd6/action-download-artifact@v2
46-
with:
47-
name: junit-test-results
48-
workflow: ${{ github.event.workflow.id }}
49-
run_id: ${{ github.event.workflow_run.id }}
50-
- name: Publish Test Report
51-
uses: mikepenz/action-junit-report@v3
52-
with:
53-
commit: ${{github.event.workflow_run.head_sha}}
54-
report_paths: '**/build/test-results/test/TEST-*.xml'

0 commit comments

Comments
 (0)