From 484a1319332bf64f25f9955e0a4d0cfe744f6b33 Mon Sep 17 00:00:00 2001 From: Diogo Benvenutti Date: Tue, 3 Sep 2024 19:28:02 +0200 Subject: [PATCH] Add initial coverage workflow --- .github/workflows/coverage.yaml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/coverage.yaml diff --git a/.github/workflows/coverage.yaml b/.github/workflows/coverage.yaml new file mode 100644 index 0000000..bd93893 --- /dev/null +++ b/.github/workflows/coverage.yaml @@ -0,0 +1,32 @@ +name: coverage + +on: [push] + +jobs: + coverage: + runs-on: ubuntu-22.04 + + steps: + - name: Check out repository code + uses: actions/checkout@v4 + + - name: Install Qt + uses: jurplel/install-qt-action@v4 + with: + version: '6.5.*' + target: 'desktop' + + - name: Create build directory + run: cmake -E make_directory ${{github.workspace}}/build + + - name: Configure + working-directory: ${{github.workspace}}/build + run: cmake -DCMAKE_BUILD_TYPE=Debug -DCODE_COVERAGE=ON .. + + - name: Build + working-directory: ${{github.workspace}}/build + run: cmake --build . --config Debug + + - name: Test + working-directory: ${{github.workspace}}/build + run: ctest -C Debug -VV .