chore: Try filtering into a different file

This commit is contained in:
Francois Best 2021-08-10 10:50:02 +02:00
parent bc14882ad7
commit 664e512a93
1 changed files with 2 additions and 7 deletions

View File

@ -45,16 +45,11 @@ jobs:
working-directory: ${{github.workspace}}/build
run: ctest --verbose
- name: Prune external code coverage
working-directory: ${{github.workspace}}/build
run: rm -rf ./external/google-test/googletest/CMakeFiles/gtest.dir/src/gtest-all.cc.gcda
- name: Generate code coverage report
working-directory: ${{github.workspace}}/build
run: |
lcov --directory . --capture --output-file coverage.info
cat coverage.info
lcov --remove coverage.info '/usr/*' "$(pwd)/test/*" "$(pwd)/external/*" --output-file coverage.info
lcov --directory . --capture --output-file coverage-raw.info
lcov --remove coverage-raw.info '/usr/*' "$(pwd)/test/*" "$(pwd)/external/*" --output-file coverage.info
lcov --list coverage.info
- uses: coverallsapp/github-action@9ba913c152ae4be1327bfb9085dc806cedb44057