Skip to content

Commit

Permalink
Fix for uploading coverage to Codecov
Browse files Browse the repository at this point in the history
Use codecov-action to upload coverage to Codecov.

For more information, see:

* https://docs.codecov.com/docs/codecov-uploader

* https://github.com/marketplace/actions/codecov
  • Loading branch information
rmisev committed Jun 13, 2024
1 parent e28f9c5 commit 4602e9d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/test-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
lcov --capture --directory . --output-file coverage.info
lcov --remove coverage.info '/usr/*' '*/deps/*' '*/test/*' --output-file coverage.info
lcov --list coverage.info
bash <(curl -s https://codecov.io/bash) -f coverage.info || echo "Codecov did not collect coverage reports"
codecov: true

- name: g++ C++17 amalgamated
cxx_compiler: g++
Expand Down Expand Up @@ -84,3 +84,9 @@ jobs:
- name: after test
if: ${{ matrix.after_test }}
run: ${{ matrix.after_test }}
- uses: codecov/codecov-action@v4
if: ${{ matrix.codecov }}
with:
files: ./coverage.info
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true

0 comments on commit 4602e9d

Please sign in to comment.