Skip to content

Commit

Permalink
Add initial coverage workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
benvenutti committed Sep 3, 2024
1 parent 0c95ee9 commit 484a131
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
@@ -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 .

0 comments on commit 484a131

Please sign in to comment.