Skip to content

Commit ffa12c5

Browse files
authored
Parse test results and publish html report (#461)
Parse test results and publish html report as workflow annotation
1 parent ce575f3 commit ffa12c5

File tree

1 file changed

+38
-2
lines changed

1 file changed

+38
-2
lines changed

.github/workflows/[email protected]

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,19 +117,31 @@ jobs:
117117
run: mvn -B test -Dfmt.skip=true -Dclirr.skip=true -Danimal.sniffer.skip=true
118118

119119
- name: Copy test results
120-
if: success() || failure()
120+
if: always()
121121
run: |
122122
shopt -s globstar
123123
mkdir unit
124124
cp --parents ./**/target/*-reports/*.xml unit/
125125
126126
- name: Upload test results
127127
uses: actions/upload-artifact@v4
128-
if: success() || failure()
128+
if: always()
129129
with:
130130
name: test-results
131131
path: "*/**/target/*-reports/*.xml"
132132

133+
- name: Parse test results
134+
uses: mikepenz/action-junit-report@v5
135+
if: always()
136+
with:
137+
check_name: Unit tests report
138+
require_tests: true
139+
report_paths: "*/**/target/*-reports/*.xml"
140+
follow_symlink: true
141+
detailed_summary: true
142+
updateComment: false
143+
skip_annotations: true
144+
133145
setup-integration-tests:
134146
name: Setup ITs
135147
runs-on: ubuntu-latest
@@ -239,6 +251,18 @@ jobs:
239251
name: ccm-log-cassandra-${{ matrix.java-version }}-${{ matrix.cassandra-version }}
240252
path: /tmp/ccm*/ccm*/node*/logs/*
241253

254+
- name: Parse test results
255+
uses: mikepenz/action-junit-report@v5
256+
if: always()
257+
with:
258+
check_name: Integration tests report for Cassandra ${{ steps.cassandra-version.outputs.value }}
259+
require_tests: true
260+
report_paths: "*/**/target/*-reports/*.xml"
261+
follow_symlink: true
262+
detailed_summary: true
263+
updateComment: false
264+
skip_annotations: true
265+
242266
scylla-integration-tests:
243267
name: Scylla ITs
244268
runs-on: ubuntu-latest
@@ -343,3 +367,15 @@ jobs:
343367
with:
344368
name: ccm-log-scylla-${{ matrix.java-version }}-${{ matrix.scylla-version }}
345369
path: /tmp/ccm*/ccm*/node*/logs/*
370+
371+
- name: Parse test results
372+
uses: mikepenz/action-junit-report@v5
373+
if: always()
374+
with:
375+
check_name: Integration tests report for Scylla ${{ steps.scylla-version.outputs.value }}
376+
require_tests: true
377+
report_paths: "*/**/target/*-reports/*.xml"
378+
follow_symlink: true
379+
detailed_summary: true
380+
updateComment: false
381+
skip_annotations: true

0 commit comments

Comments
 (0)