Skip to content

Commit

Permalink
Update codecov.yml (MisterTea#637)
Browse files Browse the repository at this point in the history
* Update codecov.yml

* Update codecov.yml
  • Loading branch information
MisterTea authored May 2, 2024
1 parent 2ff796a commit 0bcd11e
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Linux CI
name: Codecov

on:
push:
Expand Down Expand Up @@ -49,9 +49,16 @@ jobs:
cmake -DCODE_COVERAGE=ON ../
make -j`nproc`
./et-test
lcov --capture --directory . --output-file coverage.info
lcov --remove coverage.info '/usr/*' --output-file coverage.info # filter system-files
lcov --list coverage.info # debug info
# Uploading report to CodeCov
bash <(curl -s https://codecov.io/bash) -f coverage.info || echo "Codecov did not collect coverage reports"
lcov --capture --directory . --output-file ../coverage.info
lcov --remove ../coverage.info '/usr/*' --output-file coverage.info # filter system-files
lcov --list ../coverage.info # debug info
popd
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
directory: ./
fail_ci_if_error: true
files: ./coverage.info
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true

0 comments on commit 0bcd11e

Please sign in to comment.