Skip to content

Commit 19f6a5a

Browse files
committed
[ci] Use codecov action
1 parent 701da42 commit 19f6a5a

1 file changed

Lines changed: 5 additions & 9 deletions

File tree

.github/workflows/test.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,9 @@ jobs:
9191

9292
- name: Codecov
9393
if: contains(matrix.extra_build_flags, 'coverage')
94+
uses: codecov/codecov-action@v5
9495
working-directory: ${{github.workspace}}/build
95-
run: |
96-
echo "Producing coverage reports..."
97-
find . -name catch_tests.cpp.gcno -exec gcov -pb {} +
98-
99-
echo "Finding relevant report..."
100-
cov_report=$(find . -name "*scope_guard.hpp.gcov" -exec readlink -e {} +)
101-
102-
echo "The report is ${cov_report}. Uploading to codecov..."
103-
bash <(curl -s https://codecov.io/bash) -f $cov_report
96+
with:
97+
token: ${{ secrets.CODECOV_TOKEN }}
98+
files: . /**/*scope_guard.hpp.gcov
99+
flags: unittests

0 commit comments

Comments
 (0)