Skip to content

Commit 309d154

Browse files
committed
Overwrite JUnit reports SHA artifact to support matrix with more parameters than split-index
1 parent b98648d commit 309d154

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.github/workflows/integration-test.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
git-branch: junit-reports-it-${{ github.sha }}-download
4343
path: junit-reports-first-index-1
4444

45-
- name: Checkout JUnit reports (split-index 0)
45+
- name: Checkout JUnit reports (split-index 0a)
4646
uses: ./checkout-junit-reports
4747
with:
4848
split-index: 0
@@ -56,9 +56,16 @@ jobs:
5656
git-branch: junit-reports-it-${{ github.sha }}-download
5757
path: junit-reports-first-index-2
5858

59+
- name: Checkout JUnit reports (split-index 0b)
60+
uses: ./checkout-junit-reports
61+
with:
62+
split-index: 0
63+
git-branch: junit-reports-it-${{ github.sha }}-download
64+
path: junit-reports-first-index-3
65+
5966
- name: Assert JUnit reports
6067
run: |
61-
for SPLIT_INDEX in {0..2}; do
68+
for SPLIT_INDEX in {0..3}; do
6269
echo "Checking JUnit reports for split-index $SPLIT_INDEX"
6370
cd junit-reports-first-index-$SPLIT_INDEX
6471
REPORT_FILE="first.xml"

checkout-junit-reports/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ runs:
8989
with:
9090
name: ${{ inputs.artifact-name }}
9191
path: ${{ inputs.artifact-path }}
92+
overwrite: true
9293

9394
- name: Clean up JUnit reports SHA
9495
if: always()

0 commit comments

Comments
 (0)