summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorMitya Selivanov <0x7fffff@guattari.ru>2022-08-21 15:38:32 +0400
committerMitya Selivanov <0x7fffff@guattari.ru>2022-08-21 15:38:32 +0400
commit029a9031826e29a9d5fc553087a5af81fcbbdd1d (patch)
treeb653e08182f3ffc5bbf65cd8e3c47793efc864ef /.github/workflows
parent17bb451f1795e05e95d674f9308fb0d7d15559d6 (diff)
downloadkit-029a9031826e29a9d5fc553087a5af81fcbbdd1d.zip
test
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/build_and_test.yml12
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