ci: bump codecov/codecov-action from 5.4.3 to 5.5.0 #384
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- "*" | |
name: Code coverage | |
permissions: | |
contents: read | |
jobs: | |
check: | |
name: Code coverage | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 | |
with: | |
persist-credentials: false | |
- name: Install toolchain | |
uses: dtolnay/rust-toolchain@b3b07ba8b418998c39fb20f53e8b695cdcc8de1b | |
with: | |
toolchain: stable | |
components: llvm-tools-preview | |
- name: Install grcov | |
run: cargo install grcov | |
- name: Generate code coverage | |
env: | |
CARGO_INCREMENTAL: "0" | |
RUSTFLAGS: "-Cinstrument-coverage" | |
LLVM_PROFILE_FILE: "cargo-test-%p-%m.profraw" | |
run: cargo test --all-features | |
- name: Create coverage file | |
run: | | |
grcov . --binary-path ./target/debug/deps/ -s . -t lcov --branch --ignore-not-existing --ignore '../*' --ignore "/*" -o ./target/coverage.lcov | |
- name: Upload to codecov.io | |
uses: codecov/codecov-action@fdcc8476540edceab3de004e990f80d881c6cc00 | |
with: | |
fail_ci_if_error: true | |
files: ./target/*.lcov | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |