diff options
-rw-r--r-- | .github/workflows/build_and_test.yml | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 88cbccb..1e5fb79 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -43,18 +43,22 @@ jobs: cmake -B build -S . cmake --build build --config $BUILD_TYPE - - name: Run tests & generate coverage on Linux - if: runner.os == 'Linux' + - name: Run tests + if: runner.os != 'Windows' working-directory: ${{ github.workspace }}/build run: | ctest -V -C $BUILD_TYPE + + - name: Generate coverage on Linux + if: runner.os == 'Linux' + working-directory: ${{ github.workspace }}/build + run: | gcovr -j $(nproc) --delete --root ../source/ --exclude '\.\./source/test/' --print-summary --xml-pretty --xml coverage.xml . - - name: Run tests & generate coverage on macOS + - name: Generate coverage on macOS if: runner.os == 'macOS' working-directory: ${{ github.workspace }}/build run: | - ctest -V -C $BUILD_TYPE gcovr -j 2 --delete --root ../source/ --exclude '\.\./source/test/' --print-summary --xml-pretty --xml coverage.xml . - name: Run tests & generate coverage on Windows |