Skip to content

Commit

Permalink
Handle upgrade from LCOV 1.15 to LCOV 2.0 (#826)
Browse files Browse the repository at this point in the history
* Testing code coverage with a comment only change
* Workaround for failing code coverage
* Testing code coverage fix

Signed-off-by: Alan Jowett <[email protected]>
  • Loading branch information
Alan-Jowett authored Jan 18, 2025
1 parent c752a2e commit 76987ae
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 76987ae

Please sign in to comment.