-
Notifications
You must be signed in to change notification settings - Fork 183
32 lines (31 loc) · 912 Bytes
/
codecov-ci.yml
File metadata and controls
32 lines (31 loc) · 912 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
name: Code Coverage
on:
push:
branches: [ '*' ]
pull_request:
branches: [ '*' ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
cancel-in-progress: true
permissions:
contents: read
jobs:
codecov-ci:
runs-on: ubuntu-latest
steps:
- name: Install lcov
run: |
sudo apt-get update -o Acquire::Languages=none -o Acquire::Translation=none
sudo apt-get -y install lcov
- uses: actions/checkout@v6
- name: Run Code Coverage Build
run: ./util/codecov-ci.sh ./build
- name: Upload code coverage report to Codecov
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
uses: codecov/codecov-action@v6
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: "./build/coverage-default.info,./build/coverage-no-asm.info"
verbose: true
fail_ci_if_error: true