Skip to content

Commit a5f66db

Browse files
committed
ci: checkout code before processing codecov report
Signed-off-by: Milas Bowman <[email protected]>
1 parent 891117d commit a5f66db

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,14 @@ jobs:
210210
- test
211211
- e2e
212212
steps:
213+
# codecov won't process the report without the source code available
214+
- name: Checkout
215+
uses: actions/checkout@v3
213216
- name: Set up Go
214217
uses: actions/setup-go@v4
218+
with:
219+
go-version-file: 'go.mod'
220+
check-latest: true
215221
- name: Download unit test coverage
216222
uses: actions/download-artifact@v3
217223
with:
@@ -231,11 +237,6 @@ jobs:
231237
name: go-covdata-txt
232238
path: ./coverage.txt
233239
if-no-files-found: error
234-
- name: Delete binary coverage data
235-
# despite having with.files, codecov generates a mangled report with
236-
# data from the binary coverage files mixed in, so delete it first
237-
run: |
238-
rm -rf ./coverage/
239240
- name: Upload coverage to Codecov
240241
uses: codecov/codecov-action@v3
241242
with:

0 commit comments

Comments
 (0)