Skip to content

Commit e0c5e37

Browse files
committed
Fix the coverage print issue
1 parent 609fef2 commit e0c5e37

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/cpp-build-test-coverage.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ jobs:
8282
# -------------------------------------------------------
8383
- name: Generate coverage report
8484
run: |
85+
cd build
8586
lcov --rc geninfo_unexecuted_blocks=1 --ignore-errors mismatch -d . -c -o coverage.info
8687
lcov -r coverage.info "*/_deps/*" "/usr/*" "*/tests/*" -o coverageFiltered.info
8788
lcov --list coverageFiltered.info
@@ -91,5 +92,6 @@ jobs:
9192
# -------------------------------------------------------
9293
- name: Upload coverage to GitHub summary
9394
run: |
95+
cd build
9496
echo "## Test Coverage Summary" >> $GITHUB_STEP_SUMMARY
9597
lcov --summary coverageFiltered.info >> $GITHUB_STEP_SUMMARY

0 commit comments

Comments
 (0)