7393d62235 2026-01-07 1: name: rust-clippy analyze
7393d62235 2026-01-07 2:
7393d62235 2026-01-07 3: on: push
7393d62235 2026-01-07 4:
7393d62235 2026-01-07 5: # Make sure CI fails on all warnings, including Clippy lints
7393d62235 2026-01-07 6: env:
7393d62235 2026-01-07 7: RUSTFLAGS: "-Dwarnings"
7393d62235 2026-01-07 8:
7393d62235 2026-01-07 9: jobs:
7393d62235 2026-01-07 10: rust-clippy-test:
7393d62235 2026-01-07 11: name: Run rust-clippy analyzing
7393d62235 2026-01-07 12: runs-on: ubuntu-latest
7393d62235 2026-01-07 13: permissions:
7393d62235 2026-01-07 14: contents: read
7393d62235 2026-01-07 15: security-events: write
7393d62235 2026-01-07 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
7393d62235 2026-01-07 21: uses: dtolnay/rust-toolchain@stable
7393d62235 2026-01-07 22:
7393d62235 2026-01-07 23: - uses: Swatinem/rust-cache@v2
7393d62235 2026-01-07 24:
7393d62235 2026-01-07 25: - name: Run tests
7393d62235 2026-01-07 26: run: cargo test --all-targets --all-features
7393d62235 2026-01-07 27:
7393d62235 2026-01-07 28: - name: Run rust-clippy
7393d62235 2026-01-07 29: run: cargo clippy --all-targets --all-features