diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index d9ebe3dc6..937dee039 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -33,16 +33,17 @@ jobs: - name: Build run: | mkdir build - cmake -B build -DCMAKE_BUILD_TYPE=${{env.BUILD_CONFIGURATION}} -DCMAKE_CXX_FLAGS="--coverage -fprofile-arcs -ftest-coverage -g" - cmake --build build -j $(nproc) + cmake -B build -DCMAKE_BUILD_TYPE=${{env.BUILD_CONFIGURATION}} -DCMAKE_CXX_FLAGS="--coverage -fprofile-arcs -fprofile-update=atomic -ftest-coverage -g" + cmake --build build -j $(nproc) --config ${{env.BUILD_CONFIGURATION}} - name: Run unit tests run: ./tests --abort --reporter compact + # Comment only change to test coverage report to coveralls - name: Generate code coverage report run: | mkdir coverage - lcov --capture --directory build --include '*/ebpf-verifier/src/*' --output-file coverage/lcov.info + lcov --ignore-errors all --capture --directory build --include '*/ebpf-verifier/src/*' --output-file coverage/lcov.info - name: Coveralls Parallel uses: coverallsapp/github-action@master