1+ name : ' Test Report'
2+ on :
3+ workflow_run :
4+ workflows : ['Java 8, 11, 17, 21 CI', 'Java 11 CI macOS (Apple)'] # runs after CI workflow
5+ types :
6+ - completed
7+ permissions :
8+ contents : read
9+ actions : read
10+ checks : write
11+ jobs :
12+ report :
13+ runs-on : ubuntu-latest
14+ steps :
15+ - name : Check for test-results-j8 artifact
16+ id : check_j8
17+ uses : actions/download-artifact@v4
18+ with :
19+ name : test-results-j8
20+ path : temp-j8
21+ continue-on-error : true
22+
23+ - name : Check for test-results-j11 artifact
24+ id : check_j11
25+ uses : actions/download-artifact@v4
26+ with :
27+ name : test-results-j11
28+ path : temp-j11
29+ continue-on-error : true
30+
31+ - name : Check for test-results-j8 artifact
32+ id : check_j17
33+ uses : actions/download-artifact@v4
34+ with :
35+ name : test-results-j17
36+ path : temp-j17
37+ continue-on-error : true
38+
39+ - name : Check for test-results-j21 artifact
40+ id : check_j21
41+ uses : actions/download-artifact@v4
42+ with :
43+ name : test-results-j21
44+ path : temp-j21
45+ continue-on-error : true
46+
47+ - name : Check for test-results-j21 artifact
48+ id : check__macos_j11
49+ uses : actions/download-artifact@v4
50+ with :
51+ name : test-results-macos-j11
52+ path : temp-macos-j11
53+ continue-on-error : true
54+
55+ - uses : dorny/test-reporter@v1
56+ if : ${{ steps.check_j8.outcome == 'success' }}
57+ with :
58+ artifact : test-results-j8 # artifact name
59+ name : Java 8 Tests # Name of the check run which will be created
60+ path : ' *.xml' # Path to test results (inside artifact .zip)
61+ reporter : java-junit # Format of test results
62+
63+ - uses : dorny/test-reporter@v1
64+ if : ${{ steps.check_j11.outcome == 'success' }}
65+ with :
66+ artifact : test-results-j11 # artifact name
67+ name : Java 11 tests # Name of the check run which will be created
68+ path : ' *.xml' # Path to test results (inside artifact .zip)
69+ reporter : java-junit # Format of test results
70+
71+ - uses : dorny/test-reporter@v1
72+ if : ${{ steps.check_j17.outcome == 'success' }}
73+ with :
74+ artifact : test-results-j17 # artifact name
75+ name : Java 17 tests # Name of the check run which will be created
76+ path : ' *.xml' # Path to test results (inside artifact .zip)
77+ reporter : java-junit # Format of test results
78+
79+ - uses : dorny/test-reporter@v1
80+ if : ${{ steps.check_j21.outcome == 'success' }}
81+ with :
82+ artifact : test-results-j21 # artifact name
83+ name : Java 21 tests # Name of the check run which will be created
84+ path : ' *.xml' # Path to test results (inside artifact .zip)
85+ reporter : java-junit # Format of test results
86+
87+ - uses : dorny/test-reporter@v1
88+ if : ${{ steps.check__macos_j11.outcome == 'success' }}
89+ with :
90+ artifact : test-results-macos-j11 # artifact name
91+ name : Java 11 macos tests # Name of the check run which will be created
92+ path : ' *.xml' # Path to test results (inside artifact .zip)
93+ reporter : java-junit # Format of test results
0 commit comments