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