Skip to content

Commit a978251

Browse files
committed
Upload test coverage report to Codecov
1 parent aaeeb56 commit a978251

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/coverage.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,22 @@ jobs:
2525
cmake --build build --config Debug --target test
2626
cmake --build build --config Debug --target coverage
2727
28-
- name: Create test coverage report
28+
- name: Upload test coverage report to Codecov
29+
uses: codecov/codecov-action@v4
30+
with:
31+
fail_ci_if_error: true # optional (default = false)
32+
disable_search: true # optional (default = false)
33+
files: ./build/coverage.cobertura.xml # optional
34+
flags: unittests # optional
35+
# name: codecov-umbrella # optional
36+
token: ${{ secrets.CODECOV_TOKEN }}
37+
verbose: true # optional (default = false)
38+
39+
- name: Create test coverage summary
2940
uses: irongut/CodeCoverageSummary@v1.3.0
3041
with:
3142
filename: build/**/coverage.cobertura.xml
3243
badge: true
44+
format: markdown
45+
output: both
46+

0 commit comments

Comments
 (0)