From e540d3f7b8a907d34ade77446951a02abede79ea Mon Sep 17 00:00:00 2001 From: erlingrj Date: Tue, 21 May 2024 21:52:32 +0200 Subject: [PATCH] Coverage comparison to main --- .github/workflows/ci.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d496d535..031657f9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,9 +22,18 @@ jobs: cmake -Bbuild && cd build cmake --build . make test + - make: Run tests on main for coverage comparison + run: | + git checkout main + cmake -Bbuild-old && cd build-old + cmake --build . + make test + if: ${{ github.event_name == 'pull_request' }} - name: Coverage uses: romeovs/lcov-reporter-action@v0.2.16 with: lcov-file: build/coverage.info + lcov-base: build-old/coverage.info + delete-old-comments: true github-token: ${{ secrets.GITHUB_TOKEN }} if: ${{ github.event_name == 'pull_request' }} \ No newline at end of file