Skip to content

Commit

Permalink
ci: upload coverage with token
Browse files Browse the repository at this point in the history
  • Loading branch information
yanganto committed Apr 22, 2024
1 parent 958c9cc commit c499f7d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ env:
jobs:
codecov:
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- uses: actions/checkout@v2
- name: Set up toolchain
Expand Down Expand Up @@ -45,9 +43,11 @@ jobs:
run: if [[ ! -e ~/.cargo/bin/grcov ]]; then cargo install grcov; fi
- name: Generate coverage
run: grcov . --binary-path target/debug/deps/ -s . -t lcov --branch --ignore-not-existing --ignore '../**' --ignore '/*' -o coverage.lcov
- uses: codecov/codecov-action@v4
- name: Upload coverage
uses: codecov/codecov-action@v4
with:
files: ./coverage.lcov
flags: rust
fail_ci_if_error: true
use_oidc: true
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit c499f7d

Please sign in to comment.