Skip to content

Commit f242332

Browse files
committed
Use gocovmerge to merge all coverage artifacts
1 parent 916dc48 commit f242332

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

Diff for: .github/workflows/test-go-task.yml

+13-4
Original file line numberDiff line numberDiff line change
@@ -177,17 +177,26 @@ jobs:
177177
steps:
178178
- name: Checkout repository
179179
uses: actions/checkout@v3
180+
181+
- name: Install Go
182+
uses: actions/setup-go@v3
183+
with:
184+
go-version: ${{ env.GO_VERSION }}
185+
186+
- name: Install gocovmerge
187+
run: go install github.com/wadey/gocovmerge@b5bfa59
188+
180189
- name: Download coverage data artifact
181190
uses: actions/download-artifact@v3
182191
with:
183192
name: ${{ env.COVERAGE_ARTIFACT }}
184193

194+
- name: Merge all code coverage artifacts
195+
run: gocovmerge coverage*.txt > coverage.txt
196+
185197
- name: Send unit tests coverage to Codecov
186198
uses: codecov/codecov-action@v3
187199
with:
188-
files: >
189-
./coverage_unit.txt,
190-
./coverage_legacy.txt,
191-
./coverage_integration_*.txt
200+
files: ./coverage.txt
192201
flags: unit
193202
fail_ci_if_error: ${{ github.repository == 'arduino/arduino-cli' }}

0 commit comments

Comments
 (0)