Skip to content

Commit

Permalink
CI: Use lcov and official coveralls GH Action
Browse files Browse the repository at this point in the history
  • Loading branch information
Holzhaus committed Jul 8, 2021
1 parent 98ff1a6 commit 49c8684
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions .github/workflows/build-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ jobs:
uses: actions/checkout@v2
- name: Install build dependencies
run: tools/debian_buildenv.sh setup
- name: "Install cpp-coveralls"
if: matrix.name == 'coverage'
run: pip install cpp-coveralls
- name: Create build directory
run: mkdir build
- name: Configure (clazy)
Expand Down Expand Up @@ -122,7 +119,21 @@ jobs:
CTEST_OUTPUT_ON_FAILURE: 1
- name: "Generate Coverage Report"
if: matrix.name == 'coverage'
run: coveralls --root .. --exclude lib --exclude src/test --exclude build --gcov-options '\-lp'
run: >-
lcov
--capture
--directory .
--base-directory ..
--include "${PWD%/*}/src/*"
--exclude "${PWD%/*}/src/test/*"
--exclude "${PWD%/*}/build/*"
--exclude "${PWD%/*}/lib/*"
--output-file lcov.info
working-directory: build
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
- name: "Upload Coverage Report to coveralls.io"
if: matrix.name == 'coverage'
uses: coverallsapp/github-action@master
with:
flag-name: ubuntu-20.04
path-to-lcov: build/lcov.info
github-token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 49c8684

Please sign in to comment.