clippy #396
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: | |
branches: [ main ] | |
jobs: | |
coverage: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Rust | |
run: rustup toolchain install nightly | |
- name: Install llvm | |
run: rustup component add llvm-tools-preview --toolchain stable-x86_64-unknown-linux-gnu | |
- uses: taiki-e/install-action@cargo-llvm-cov | |
- name: Generate code coverage normal run | |
run: cargo +nightly llvm-cov --workspace --lcov --output-path lcov1.info | |
- name: Generate code coverage all-features | |
run: cargo +nightly llvm-cov --all-features --workspace --lcov --output-path lcov2.info | |
- name: Generate code coverage unsafe w. checked-decode | |
run: cargo +nightly llvm-cov --no-default-features --features frame --workspace --lcov --output-path lcov3.info | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v1 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos | |
files: lcov1.info,lcov2.info,lcov3.info | |
fail_ci_if_error: true |