switch to non-nightly cargo clippy and fmt #69
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:clippy+rustfmt | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
# Make sure CI fails on all warnings, including Clippy lints | |
env: | |
RUSTFLAGS: "-Dwarnings" | |
jobs: | |
linting: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly | |
profile: minimal | |
components: rustfmt, clippy | |
- name: Run rust clippy | |
run: | | |
cargo clippy --all-targets --all-features | |
- name: Run rust fmt | |
run: | | |
cargo fmt --check |