mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-24 13:46:43 +00:00
Upload codecov coverage properly
This commit is contained in:
parent
98000a66b3
commit
04652e620f
1 changed files with 10 additions and 3 deletions
11
.github/workflows/unit_tests.yml
vendored
11
.github/workflows/unit_tests.yml
vendored
|
|
@ -52,12 +52,19 @@ jobs:
|
|||
run: go get github.com/wadey/gocovmerge && go install github.com/wadey/gocovmerge
|
||||
|
||||
- name: Merge coverage reports
|
||||
run: gocovmerge $(find . -type f -name '*profile.out') > coverage.txt
|
||||
run: gocovmerge $(find . -type f -name '*coverage.out') > coverage.txt
|
||||
|
||||
- name: Check coverage report lines
|
||||
run: wc -l coverage.txt
|
||||
continue-on-error: true
|
||||
|
||||
- name: Check coverage report files
|
||||
run: ls **/*profile.out
|
||||
run: ls **/*coverage.out
|
||||
continue-on-error: true
|
||||
|
||||
- name: Upload coverage to Codecov
|
||||
uses: codecov/codecov-action@v4
|
||||
with:
|
||||
file: ./coverage.txt
|
||||
token: ${{ secrets.CODECOV_TOKEN }}
|
||||
fail_ci_if_error: true
|
||||
Loading…
Reference in a new issue