Skip to content

Commit fb2a80f

Browse files
committed
Update build workflow: refine report handling and add test result publishing
- Change `Upload Reports` to run only when not cancelled. - Add a new step to publish test results with a detailed summary.
1 parent ba63122 commit fb2a80f

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/build.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,23 @@ 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+
skip_success_summary: true
56+
4757
- name: Disable Auto-Merge on Fail
4858
if: failure() && github.event_name == 'pull_request'
4959
run: gh pr merge --disable-auto "$PR_URL"

0 commit comments

Comments
 (0)