Skip to content

Commit 765de1f

Browse files
committed
Fixed coverage upload.
1 parent 876a09b commit 765de1f

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/coverage.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,15 @@ jobs:
6363
cmake --build build --target all || exit 1
6464
ctest --test-dir build || exit 1
6565
66-
- name: Upload coverage to Codecov
66+
- name: Generate coverage
6767
working-directory: build
6868
run: |
6969
# Create lcov report
7070
lcov --capture --directory . --output-file coverage.info --ignore-errors mismatch
7171
lcov --remove coverage.info '/usr/*' --output-file coverage.info # filter system-files
7272
lcov --list coverage.info # debug info
73-
# Uploading report to CodeCov
74-
bash <(curl -s https://codecov.io/bash) -f coverage.info || echo "Codecov did not collect coverage reports"
73+
- name: Upload coverage to Codecov
74+
uses: codecov/codecov-action@v3
75+
with:
76+
files: build/coverage.info
77+
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)