Skip to content

Commit

Permalink
actions: collect coverage by lcov
Browse files Browse the repository at this point in the history
  • Loading branch information
j123b567 committed Jan 16, 2023
1 parent 66e5c8d commit f1cc52a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,16 @@ jobs:
CFLAGS: -fprofile-arcs -ftest-coverage
LDFLAGS: -lgcov
run: make clean all test


- name: lcov_capture
run: lcov --capture --directory . --output-file coverage.info

- name: lcov_cleanup
run: lcov --remove coverage.info 'test/*' --output-file coverage.info

- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
base-path: libscpi/
path-to-lcov: coverage.info

0 comments on commit f1cc52a

Please sign in to comment.