-
Notifications
You must be signed in to change notification settings - Fork 442
54 lines (42 loc) · 1.13 KB
/
coverage.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
52
53
54
name: Code Coverage CI
on:
workflow_dispatch:
pull_request:
push:
branches:
- master
- coverage-dev
jobs:
standard:
strategy:
fail-fast: false
matrix:
runs-on: [ubuntu-latest]
name: "💦 ${{ matrix.runs-on }}"
runs-on: ${{ matrix.runs-on }}
steps:
- uses: actions/checkout@v2
- name: Setup gcovr (Linux)
if: runner.os == 'Linux'
run: |
sudo apt-get update --fix-missing
sudo apt-get install -y gcovr
#- name: Setup gcovr (macOS)
# if: runner.os == 'macOS'
# run: brew install gcovr
#- name: Setup libfec
# run: git clone https://github.com/jgaeddert/libfec.git && cd libfec && ./configure && make && sudo make install
- name: bootstrap
run: ./bootstrap.sh
- name: configure
run: ./configure --enable-coverage
- name: make
run: make -j 2
- name: make coverage
run: make -j 2 coverage
- name: upload report to codecov with github action
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
verbose: true
token: ${{ secrets.CODECOV_TOKEN }}