build(deps): bump codecov/codecov-action from 5 to 6 #1373
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
| name: Coverage | |
| on: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| merge_group: | |
| pull_request: | |
| types: [opened, synchronize, reopened, ready_for_review] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| jobs: | |
| rust-unit-coverage: | |
| name: Unit & Linter coverage | |
| runs-on: ubuntu-latest-16-cores | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis | |
| - name: Install toolchain | |
| uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: nightly | |
| components: clippy rustfmt llvm-tools-preview | |
| - name: Set up rust cache | |
| uses: Swatinem/rust-cache@v2 | |
| with: | |
| save-if: ${{ github.ref == 'refs/heads/main' }} | |
| - name: Install Anvil | |
| uses: foundry-rs/foundry-toolchain@v1 | |
| - uses: taiki-e/install-action@grcov | |
| - uses: taiki-e/install-action@protoc | |
| - uses: taiki-e/install-action@nextest | |
| - name: Install cargo-sonar and run Clippy | |
| run: | | |
| cargo install cargo-sonar | |
| cargo clippy --all-features --all-targets --message-format=json > clippy.json | |
| cargo sonar --clippy | |
| - name: Build with coverage | |
| env: | |
| RUST_LOG: info | |
| LLVM_PROFILE_FILE: "llvm_profile-instrumentation-%p-%m.profraw" | |
| run: cargo nextest run --workspace --cargo-profile codecov -Z profile-rustflags | |
| - name: Run grcov | |
| run: | | |
| grcov . --binary-path target/codecov/ -s . \ | |
| -t lcov \ | |
| --branch \ | |
| --ignore-not-existing \ | |
| --ignore '../**' \ | |
| --ignore '/*' \ | |
| -o coverage.lcov | |
| - name: Upload to codecov.io | |
| uses: codecov/codecov-action@v6 | |
| continue-on-error: true | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| fail_ci_if_error: true | |
| verbose: true |