Skip to content

Commit

Permalink
fix(ci): exclude non-libsinsp files from libsinsp test coverage
Browse files Browse the repository at this point in the history
Signed-off-by: Luca Guerra <[email protected]>
  • Loading branch information
LucaGuerra committed Jul 19, 2024
1 parent 6ea7fcd commit 70b2148
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/test_coverage_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,12 @@ jobs:
- name: Generate libsinsp coverage report
run: |
gcovr --filter ".*/userspace/libsinsp/.*" --exclude ".*/third-party/.*" --xml -o ./libsinsp.coverage.xml
gcovr --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
6 changes: 6 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
component_management:
individual_components:
- component_id: libsinsp
name: libsinsp
paths:
- userspace/libsinsp/**

0 comments on commit 70b2148

Please sign in to comment.