[runtime] Cleanup Nesting Logic #2253
Workflow file for this run
This file contains 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" ] | |
pull_request: | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
All: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Get Rust version | |
id: rust-version | |
run: echo "rust_version=$(rustc --version)" >> "$GITHUB_OUTPUT" | |
- name: Run setup | |
uses: ./.github/actions/setup | |
with: | |
rust-version: ${{ steps.rust-version.outputs.rust_version}} | |
- name: Remove examples | |
# Reduces compilation time on code we exclude from coverage | |
run: rm -rf examples | |
- name: Remove examples from Cargo.toml | |
run: | | |
sed -i.bak '/examples/d' Cargo.toml | |
- name: Install cargo-llvm-cov | |
uses: taiki-e/install-action@cargo-llvm-cov | |
- name: Generate coverage report | |
run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v4 | |
with: | |
files: lcov.info | |
fail_ci_if_error: true | |
token: ${{ secrets.CODECOV_TOKEN }} |