Skip to content

Commit

Permalink
Add coverage actions
Browse files Browse the repository at this point in the history
  • Loading branch information
oir committed Nov 12, 2023
1 parent e117f77 commit 73f5d8f
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: sudo apt-get install lcov
- run: make -j2
- run: ./test.out
- run: ./test.out
- run: |
gcov -b -p -c test.gcno && \
lcov -c -d . -o cov.info && \
lcov --remove cov.info '/usr/local/include*' '/usr/include*' '*/extern/*' '*/test.cpp*' -o meanwhile.info
rm cov.info
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: meanwhile.info

0 comments on commit 73f5d8f

Please sign in to comment.