Skip to content

Commit

Permalink
new(ci): add codecov report
Browse files Browse the repository at this point in the history
Signed-off-by: Luca Guerra <luca@guerra.sh>
  • Loading branch information
LucaGuerra committed Jul 19, 2024
1 parent e15648c commit 5057a14
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/test_coverage_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
name: unit-test-libsinsp-coverage 🧐
runs-on: 'ubuntu-22.04'
container:
image: debian:buster
image: debian:bookworm
steps:
- name: Install deps ⛓️
run: |
Expand All @@ -24,7 +24,7 @@ jobs:
libtool libelf-dev wget libc-ares-dev libcurl4-openssl-dev libssl-dev \
libtbb-dev libjq-dev libjsoncpp-dev libgrpc++-dev protobuf-compiler-grpc \
libgtest-dev libprotobuf-dev linux-headers-amd64 \
gcovr
gpg gpg-agent gcovr
- name: Checkout Libs ⤵️
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
Expand All @@ -50,3 +50,11 @@ jobs:
run: |
gcovr --filter ".*/userspace/libsinsp/.*" --exclude ".*/third-party/.*" --xml -o ./libsinsp.coverage.xml
- name: Upload to codecov
uses: codecov/codecov-action@79066c46f8dcdf8d7355f820dbac958c5b4cb9d3 # v4.5.0
with:
fail_ci_if_error: true
files: ./libsinsp.coverage.xml
flags: libsinsp
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true

0 comments on commit 5057a14

Please sign in to comment.