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