Pass clippy #354
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: CI | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: Swatinem/rust-cache@v2 | |
- name: Build core | |
run: cargo build --workspace --verbose | |
- name: Build | |
run: cargo build --workspace --features full --verbose | |
- name: Clippy | |
run: | | |
rustup toolchain install nightly --component clippy | |
rustup override set nightly | |
cargo clippy --workspace -- -D warnings | |
cargo clippy --workspace --features full -- -D warnings | |
- name: Run tests | |
run: cargo test --workspace --features full --verbose | |
- name: Install Miri | |
run: | | |
rustup toolchain install nightly --component miri | |
rustup override set nightly | |
cargo miri setup | |
- name: Test with Miri | |
run: cargo miri test --workspace --features full --verbose |