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 572c542
Show file tree
Hide file tree
Showing 3 changed files with 11 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
7 changes: 6 additions & 1 deletion .ci/docker.run
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,11 @@ if [ -n "$BASE_REF" ]; then
fi

if [ "$ENABLE_COVERAGE" == "true" ]; then
bash <(curl -s https://codecov.io/bash)

lcov --capture --directory . --output-file ./coverage.info
curl -Os https://uploader.codecov.io/latest/linux/codecov
chmod +x codecov
./codecov -f ./coverage.info -t ${CODECOV_TOKEN}
fi

exit 0
4 changes: 4 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,15 @@ jobs:
- name: Launch Action
uses:
tpm2-software/ci/runCI@main
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
CC: gcc
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 572c542

Please sign in to comment.