-
Notifications
You must be signed in to change notification settings - Fork 5
51 lines (42 loc) · 1.11 KB
/
codecov.yml
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
on: [pull_request, push]
jobs:
test:
runs-on: ubuntu-latest
env:
COVERAGE_DATA_PATH: coverage-data/coverage.info
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: build
shell: bash
run: |
cmake -S . -B build
cmake --build build
- name: test
shell: bash
run: |
cd build
ctest --verbose
- name: Install LCOV
shell: bash
run: |
sudo apt-get --assume-yes install lcov > /dev/null
- name: run test
shell: bash
run: ./build/tests/test_hellocov
- name: lcov collection
shell: bash
run: |
cd build
lcov -c -d ./ -o cover.info
# - uses: arduino/cpp-test-action@v1
# with:
# coverage-data-path: ${{ env.COVERAGE_DATA_PATH }}
# source-path: ./
# build-path: build
# runtime-paths: build/tests/test_hellocov
# Optional: upload coverage report to codecov.io
- uses: codecov/codecov-action@v1
with:
file: build/cover.info