diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 76b2d3f..4bfdce1 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -73,7 +73,12 @@ jobs: run: cmake --build build/${{ matrix.preset }} --target tidy - name: Generate LCOV report if: ${{ matrix.preset == 'codecov' }} - run: lcov -c -d . -o coverage.info --no-external --exclude "*/build/**" --ignore-errors mismatch + run: | + lcov --capture --directory . \ + --output-file coverage.info \ + --no-external \ + --exclude "$GITHUB_WORKSPACE/build/*" \ + --exclude "$GITHUB_WORKSPACE/tests/*" - uses: codecov/codecov-action@v7 if: ${{ matrix.preset == 'codecov' }} with: