Skip to content

Commit d19ec9b

Browse files
committed
fix: use unique artifact names scoped to each project
1 parent 0b65427 commit d19ec9b

File tree

2 files changed

+16
-8
lines changed

2 files changed

+16
-8
lines changed

.github/workflows/run-tests-split.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ on:
2020
working_directory:
2121
type: string
2222
default: .
23+
outputs:
24+
tests_passed:
25+
value: ${{ jobs.test.result }}
2326

2427
env:
2528
AR_REPO: ${{ inputs.repo }}
@@ -89,16 +92,21 @@ jobs:
8992
run: |
9093
make test_env.run_integration GROUP=${{ matrix.group }} SPLIT=${{ inputs.split }}
9194
95+
- name: Test - fail specific job
96+
if: ${{ matrix.group == 3 }}
97+
run: |
98+
exit 1
99+
92100
- uses: actions/upload-artifact@v4
93101
if: ${{ !cancelled() }}
94102
with:
95-
name: coveragefiles-${{ matrix.group }}
103+
name: ${{ inputs.flag_prefix }}-coveragefiles-${{ matrix.group }}
96104
path: ${{ inputs.working_directory }}/*.coverage.xml
97105

98106
- uses: actions/upload-artifact@v4
99107
if: ${{ !cancelled() }}
100108
with:
101-
name: junitfiles-${{ matrix.group }}
109+
name: ${{ inputs.flag_prefix }}-junitfiles-${{ matrix.group }}
102110
path: ${{ inputs.working_directory }}/*junit*.xml
103111

104112
upload:
@@ -135,14 +143,14 @@ jobs:
135143
id: download_coverage
136144
uses: actions/download-artifact@v4
137145
with:
138-
pattern: coveragefiles-*
146+
pattern: ${{ inputs.flag_prefix }}-coveragefiles-*
139147
merge-multiple: true
140148

141149
- name: Download test results
142150
id: download_test_results
143151
uses: actions/download-artifact@v4
144152
with:
145-
pattern: junitfiles-*
153+
pattern: ${{ inputs.flag_prefix }}-junitfiles-*
146154
merge-multiple: true
147155

148156
- name: Uploading unit test coverage (${{ matrix.name }})

.github/workflows/run-tests.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,13 @@ jobs:
6767
- uses: actions/upload-artifact@v4
6868
if: ${{ !cancelled() }}
6969
with:
70-
name: coveragefiles
70+
name: ${{ inputs.flag_prefix }}-coveragefiles
7171
path: ${{ inputs.working_directory }}/*.coverage.xml
7272

7373
- uses: actions/upload-artifact@v4
7474
if: ${{ !cancelled() }}
7575
with:
76-
name: junitfiles
76+
name: ${{ inputs.flag_prefix }}-junitfiles
7777
path: ${{ inputs.working_directory }}/*junit*.xml
7878

7979
upload:
@@ -110,13 +110,13 @@ jobs:
110110
id: download_coverage
111111
uses: actions/download-artifact@v4
112112
with:
113-
name: coveragefiles
113+
name: ${{ inputs.flag_prefix }}-coveragefiles
114114

115115
- name: Download test results
116116
id: download_test_results
117117
uses: actions/download-artifact@v4
118118
with:
119-
name: junitfiles
119+
name: ${{ inputs.flag_prefix }}-junitfiles
120120

121121
- name: Uploading unit test coverage (${{ matrix.name }})
122122
uses: codecov/codecov-action@v5

0 commit comments

Comments
 (0)