Skip to content

Commit da60e7c

Browse files
committed
Update JUnit report step in CI workflow: enable comment updates, group test suites, and avoid stack trace truncation.
1 parent 88b7beb commit da60e7c

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ concurrency:
1212
# Cancel only when the run is NOT on `main` branch
1313
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
1414

15+
permissions:
16+
checks: write
17+
pull-requests: write # only required if `comment: true` was enabled
18+
1519
jobs:
1620
validate-pr:
1721
runs-on: macos-latest-xlarge
@@ -70,12 +74,16 @@ jobs:
7074
uses: mikepenz/action-junit-report@v6
7175
if: ${{ !cancelled() }} # always run even if the previous step fails
7276
with:
73-
report_paths: '**/test-results/**/TEST-*.xml'
77+
annotate_only: true
78+
comment: true
7479
detailed_summary: true
7580
flaky_summary: true
81+
group_suite: true
7682
include_empty_in_summary: false
7783
include_time_in_summary: true
78-
annotate_only: true
84+
report_paths: '**/test-results/**/TEST-*.xml'
85+
truncate_stack_traces: false
86+
updateComment: true
7987

8088
- name: Disable Auto-Merge on Fail
8189
if: failure() && github.event_name == 'pull_request'

0 commit comments

Comments
 (0)