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
a github action using codecov/codecov-action@v4.

Signed-off-by: Juergen Repp <[email protected]>
  • Loading branch information
JuergenReppSIT committed Feb 3, 2025
1 parent 5bcdeb7 commit cb11011
Show file tree
Hide file tree
Showing 3 changed files with 12 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
3 changes: 2 additions & 1 deletion .ci/docker.run
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ 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
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 }}
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v4
with:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
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 cb11011

Please sign in to comment.