Skip to content

chore(deps): bump actions/checkout from 4.1.7 to 4.2.0 #90

chore(deps): bump actions/checkout from 4.1.7 to 4.2.0

chore(deps): bump actions/checkout from 4.1.7 to 4.2.0 #90

Workflow file for this run

name: 📶 Coverage
on:
push:
branches:
- master
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
coverage:
name: Code Coverage
runs-on: ubuntu-latest
env:
CARGO_INCREMENTAL: "0"
RUSTFLAGS: "-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests"
RUSTDOCFLAGS: "-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests"
steps:
# Checkout the repository
- name: Checkout repository
uses: actions/[email protected]
# Setup Rust nightly
- name: Install Rust
uses: actions-rs/[email protected]
id: toolchain
with:
toolchain: nightly
override: true
# Configure cache for Cargo
- name: Cache Cargo registry, index
uses: actions/[email protected]
id: cache-cargo
with:
path: |
~/.cargo/registry
~/.cargo/bin
~/.cargo/git
key: linux-${{ steps.toolchain.outputs.rustc_hash }}-rust-cov-${{ hashFiles('**/Cargo.lock') }}
# Run tests with all features
- name: Test (cargo test)
uses: actions-rs/[email protected]
with:
command: test
args: "--workspace"
# Install grcov
- uses: actions-rs/[email protected]
id: coverage
# Upload to Codecov.io
- name: Upload to Codecov.io
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ${{ steps.coverage.outputs.report }}