Skip to content

Commit

Permalink
ci: Fix usage of codecov.
Browse files Browse the repository at this point in the history
The usage of https://codecov.io/bash is deprecated. github actions
are now used to upload the coverage data.

Signed-off-by: Juergen Repp <juergen_repp@web.de>
  • Loading branch information
JuergenReppSIT committed Feb 3, 2025
1 parent 5bcdeb7 commit 4c4a33e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
1 change: 1 addition & 0 deletions .ci/docker.env
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@ WITH_TCTI
GEN_FUZZ
TEST_TCTI_CONFIG
ENABLE_COVERAGE
CODECOV_TOKEN
3 changes: 0 additions & 3 deletions .ci/docker.run
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,4 @@ if [ -n "$BASE_REF" ]; then
git diff --check "origin/$BASE_REF"
fi

if [ "$ENABLE_COVERAGE" == "true" ]; then
bash <(curl -s https://codecov.io/bash)
fi
exit 0
9 changes: 9 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,15 @@ jobs:
DOCKER_IMAGE: ubuntu-20.04
ENABLE_COVERAGE: true
PROJECT_NAME: ${{ github.event.repository.name }}
- name: Generate Coverage Data
run: lcov --capture --directory . --output-file coverage.info
- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.info
fail_ci_if_error: true
verbose: true
- name: failure
if: ${{ failure() }}
run: cat $(find ../ -name test-suite.log) || true
Expand Down

0 comments on commit 4c4a33e

Please sign in to comment.