Skip to content

Commit 6d06265

Browse files
JuergenReppSITcplappert
authored andcommitted
ci: update codecoverage action.
The usage of https://codecov.io/bash is deprecated and replaced with a github action using codecov/codecov-action@v5. Signed-off-by: Juergen Repp <[email protected]>
1 parent 83a56d1 commit 6d06265

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.ci/docker.run

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ check_branch="origin/${TRAVIS_BRANCH:-master}"
152152
[ -z "$TRAVIS_TAG" ] && git fetch "$check_branch" && git diff --check "$check_branch"
153153

154154
if [ "$ENABLE_COVERAGE" == "true" ]; then
155-
bash <(curl -s https://codecov.io/bash)
155+
lcov --capture --directory . --output-file ./coverage.info
156156
else
157157
echo "ENABLE_COVERAGE not true, got \"$ENABLE_COVERAGE\""
158158
fi

.github/workflows/main.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,13 @@ jobs:
6363
ENABLE_COVERAGE: true
6464
DOCKER_IMAGE: ubuntu-20.04
6565
CC: gcc
66+
- name: Upload Coverage to Codecov
67+
uses: codecov/codecov-action@v5
68+
with:
69+
token: ${{ secrets.CODECOV_TOKEN }}
70+
files: ./coverage.info
71+
fail_ci_if_error: true
72+
verbose: true
6673
- name: failure cat build logs
6774
if: ${{ failure() }}
6875
run: cat build/test-suite.log || true

0 commit comments

Comments
 (0)