name: Lint
on:
push:
branches:
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
lint:
name: fmt + clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
- run: cargo fmt --check
# Matches the framework gate: the whole target graph, warnings denied.
- run: cargo clippy --all-targets --all-features -- -D warnings