From 53bf70d31f3f07c045cea07e3fc1656f3191bc32 Mon Sep 17 00:00:00 2001 From: Thomas Isensee <26852629+thomasisensee@users.noreply.github.com> Date: Thu, 20 Aug 2026 14:31:27 +0200 Subject: [PATCH] fix(ci): append preset name to lcov path --- {{cookiecutter.project_slug}}/.github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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