diff options
author | Mitya Selivanov <0x7fffff@guattari.ru> | 2022-08-21 15:38:32 +0400 |
---|---|---|
committer | Mitya Selivanov <0x7fffff@guattari.ru> | 2022-08-21 15:38:32 +0400 |
commit | 029a9031826e29a9d5fc553087a5af81fcbbdd1d (patch) | |
tree | b653e08182f3ffc5bbf65cd8e3c47793efc864ef /.github/workflows | |
parent | 17bb451f1795e05e95d674f9308fb0d7d15559d6 (diff) | |
download | kit-029a9031826e29a9d5fc553087a5af81fcbbdd1d.zip |
test
Diffstat (limited to '.github/workflows')
-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 |