Skip to content

Commit 1397019

Browse files
authored
Generate test report (#271)
1 parent e0da2a8 commit 1397019

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/build.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,24 @@ jobs:
3737
JAVA_OPTS: "-Xmx8g -Dfile.encoding=UTF-8 -Djava.awt.headless=true -Dkotlin.daemon.jvm.options=-Xmx6g"
3838

3939
- name: Upload Reports
40-
if: always()
40+
if: ${{ !cancelled() }}
4141
uses: actions/upload-artifact@v4
4242
with:
4343
name: reports
4444
path: |
4545
**/build/reports/
4646
47+
- name: Publish Test Report
48+
uses: mikepenz/action-junit-report@v5
49+
if: ${{ !cancelled() }} # always run even if the previous step fails
50+
with:
51+
report_paths: '**/test-results/**/TEST-*.xml'
52+
detailed_summary: true
53+
flaky_summary: true
54+
include_empty_in_summary: false
55+
include_time_in_summary: true
56+
annotate_only: true
57+
4758
- name: Disable Auto-Merge on Fail
4859
if: failure() && github.event_name == 'pull_request'
4960
run: gh pr merge --disable-auto "$PR_URL"

0 commit comments

Comments
 (0)