-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (25 loc) · 886 Bytes
/
CodeCoverage.yml
File metadata and controls
33 lines (25 loc) · 886 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Code Coverage
on:
push:
branches: [ "dev", "main" ]
paths-ignore:
- "Docs/**"
- ".readthedocs.yaml"
- "README.md"
jobs:
code-coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Create Build Environment
run: cmake -E make_directory ${{runner.workspace}}/build
- name: Configure
run: cmake -B ${{runner.workspace}}/build -D_7BIT_DI_LIBRARY_TYPE=Static -D_7BIT_DI_BUILD_ALL_TESTS=ON -DCMAKE_CXX_FLAGS="-coverage"
- name: Build
run: cmake --build ${{runner.workspace}}/build -j
- name: Test
working-directory: ${{runner.workspace}}/build
run: ctest --output-on-failure
- name: Upload Code Coverage
working-directory: ${{runner.workspace}}/build
run: bash <(curl -s https://codecov.io/bash) -t ${{ secrets.CODECOV_TOKEN }}