diff --git a/{{cookiecutter.project_slug}}/.github/workflows/ci.yml b/{{cookiecutter.project_slug}}/.github/workflows/ci.yml index 26b2314..64bc4bb 100644 --- a/{{cookiecutter.project_slug}}/.github/workflows/ci.yml +++ b/{{cookiecutter.project_slug}}/.github/workflows/ci.yml @@ -130,7 +130,7 @@ jobs: shell: bash working-directory: ${{ "{{ github.workspace }}" }} run: | - lcov --directory ./build{% if cookiecutter.header_only == "No" %}/src{% endif %} --capture --output-file coverage.info --ignore-errors mismatch,unused --exclude '*/catch2/*' + lcov --directory ./build/test{{ "/src" if cookiecutter.header_only == "No" }} --capture --output-file coverage.info --ignore-errors mismatch,unused --exclude '*/catch2/*' - name: Upload C++ coverage to Codecov uses: codecov/codecov-action@v7