Skip to content

Commit

Permalink
first try on CodeCov
Browse files Browse the repository at this point in the history
  • Loading branch information
Bob-Chen222 committed May 7, 2024
1 parent 870ce81 commit 13305ae
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/per-lib-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,19 @@ jobs:
- name: Test compiler
run: |
test_libs.sh compiler
- name: Run lcov
run: |
lcov --capture --directory . --output-file coverage.info
lcov --remove coverage.info '/usr/*' --output-file main_coverage.info
lcov --list main_coverage.info
- name: Upload coverage to CodeCov
run: |
bash <(curl -s https://codecov.io/bash) -f main_coverage.info
- name: Upload coverage to CodeCov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./build/coverage.info
flags: unittests
name: codecov-umbrella
fail_ci_if_error: true

0 comments on commit 13305ae

Please sign in to comment.