Skip to content

Commit 40fe0d1

Browse files
committed
Updated test-go job
1 parent e888032 commit 40fe0d1

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/test-go-task.yml

+7-6
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,10 @@ jobs:
114114
mv coverage_integration.txt coverage_integration_${{ matrix.operating-system }}_${{ matrix.tests }}.txt
115115
116116
- name: Upload coverage data to workflow artifact
117-
uses: actions/upload-artifact@v3
117+
uses: actions/upload-artifact@v4
118118
with:
119119
if-no-files-found: error
120-
name: ${{ env.COVERAGE_ARTIFACT }}
120+
name: ${{ env.COVERAGE_ARTIFACT }}-test-integration-${{ matrix.operating-system }}
121121
path: |
122122
./coverage_integration_*.txt
123123
@@ -157,10 +157,10 @@ jobs:
157157

158158
- name: Upload coverage data to workflow artifact
159159
if: runner.os == 'Linux'
160-
uses: actions/upload-artifact@v3
160+
uses: actions/upload-artifact@v4
161161
with:
162162
if-no-files-found: error
163-
name: ${{ env.COVERAGE_ARTIFACT }}
163+
name: ${{ env.COVERAGE_ARTIFACT }}-test-${{ matrix.operating-system }}
164164
path: |
165165
./coverage_unit.txt
166166
@@ -182,9 +182,10 @@ jobs:
182182
run: go install github.com/wadey/gocovmerge@b5bfa59
183183

184184
- name: Download coverage data artifact
185-
uses: actions/download-artifact@v3
185+
uses: actions/download-artifact@v4
186186
with:
187-
name: ${{ env.COVERAGE_ARTIFACT }}
187+
pattern: ${{ env.COVERAGE_ARTIFACT }}-*
188+
merge-multiple: true
188189

189190
- name: Merge all code coverage artifacts
190191
run: gocovmerge coverage*.txt > coverage.txt

0 commit comments

Comments
 (0)