Skip to content

Commit

Permalink
ci: explicitly specify token for codecov
Browse files Browse the repository at this point in the history
Explicitly specify the codecov token to be used (i.e., `CODECOV_TOKEN`),
given that the latest v4 release of the codecov action requires it to be able to
generate coverage reports.

Additionally, fail CI if coverage reporting fails, since coverage is an important enough
metric for us to ensure that it's tracked consistently.


Signed-off-by: Anant Thazhemadam <47104651+thazhemadam@users.noreply.github.com>
  • Loading branch information
thazhemadam authored Mar 27, 2024
1 parent 4b72b50 commit a4d1793
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ jobs:
- uses: codecov/codecov-action@v4
with:
files: lcov.info
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
docs:
name: Documentation
runs-on: ubuntu-latest
Expand Down

0 comments on commit a4d1793

Please sign in to comment.