Skip to content

Commit

Permalink
Update workflow to list coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
BattleCh1cken committed Nov 20, 2023
1 parent cc2c542 commit 759714d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,15 @@ jobs:
- name: Test
working-directory: build
run: ./LemLib
- name: Collect Coverage
working-directory: build
run: |
lcov --directory . --capture --output-file coverage.info
lcov --remove coverage.info '/usr/*' --output-file coverage.info
lcov --remove coverage.info '*/LemLib/build/*' --output-file coverage.info
lcov --list coverage.info
- name: Upload Coverage
uses: codecov/codecov-action@v3
env:
fail_ci_if_error: true
files: ./build/coverage.info

0 comments on commit 759714d

Please sign in to comment.