diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 086619c..e9e3685 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -32,9 +32,6 @@ jobs: echo "$LCOV_ROOT/bin" >> $GITHUB_PATH shell: bash - - name: LCOV version - run: lcov --version - - name: Configure CMake # Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make. # See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type @@ -49,11 +46,12 @@ jobs: 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 - lcov --remove coverage.info 'test/*' '/usr/*' 'external/*' --output-file coverage.info + lcov --remove coverage.info '/usr/*' './test/*' './external/*' --output-file coverage.info lcov --list coverage.info