Skip to content

Commit

Permalink
ci: Fix github action for codecov.
Browse files Browse the repository at this point in the history
The usage of https://codecov.io/bash is deprecated and replaced with
https://uploader.codecov.io/latest/linux/codecov

Signed-off-by: Juergen Repp <juergen_repp@web.de>
  • Loading branch information
JuergenReppSIT committed Feb 3, 2025
1 parent 5bcdeb7 commit e3f535c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
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
5 changes: 4 additions & 1 deletion .ci/docker.run
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,9 @@ if [ -n "$BASE_REF" ]; then
fi

if [ "$ENABLE_COVERAGE" == "true" ]; then
bash <(curl -s https://codecov.io/bash)
curl -Os https://uploader.codecov.io/latest/linux/codecov
chmod +x codecov
./codecov -t ${CODECOV_TOKEN}
fi

exit 0
2 changes: 2 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ jobs:
DOCKER_IMAGE: ubuntu-20.04
ENABLE_COVERAGE: true
PROJECT_NAME: ${{ github.event.repository.name }}
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: failure
if: ${{ failure() }}
run: cat $(find ../ -name test-suite.log) || true
Expand Down

0 comments on commit e3f535c

Please sign in to comment.