4054f8ea66 2026-01-07 1: name: rust-clippy analyze
4054f8ea66 2026-01-07 2:
3: on: push
4:
4054f8ea66 2026-01-07 5: # Make sure CI fails on all warnings, including Clippy lints
4054f8ea66 2026-01-07 6: env:
4054f8ea66 2026-01-07 7: RUSTFLAGS: "-Dwarnings"
4054f8ea66 2026-01-07 8:
9: jobs:
4054f8ea66 2026-01-07 10: rust-clippy-test:
4054f8ea66 2026-01-07 11: name: Run rust-clippy analyzing
12: runs-on: ubuntu-latest
13: permissions:
14: contents: read
4054f8ea66 2026-01-07 15: security-events: write
16: steps:
4054f8ea66 2026-01-07 17: - name: Checkout code
4054f8ea66 2026-01-07 18: uses: actions/checkout@v6
4054f8ea66 2026-01-07 19:
4054f8ea66 2026-01-07 20: - name: Install Rust toolchain
4054f8ea66 2026-01-07 21: uses: dtolnay/rust-toolchain@stable
4054f8ea66 2026-01-07 22:
23: - uses: Swatinem/rust-cache@v2
24:
25: - name: Run tests
4054f8ea66 2026-01-07 26: run: cargo test --all-targets --all-features
27:
28: - name: Run rust-clippy
4054f8ea66 2026-01-07 29: run: cargo clippy --all-targets --all-features