a39355c1fc 2026-01-02 1: name: rust-clippy analyze
a39355c1fc 2026-01-02 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"
a39355c1fc 2026-01-02 8:
a39355c1fc 2026-01-02 9: jobs:
a39355c1fc 2026-01-02 10: rust-clippy-test:
a39355c1fc 2026-01-02 11: name: Run rust-clippy analyzing
a39355c1fc 2026-01-02 12: runs-on: ubuntu-latest
a39355c1fc 2026-01-02 13: permissions:
a39355c1fc 2026-01-02 14: contents: read
a39355c1fc 2026-01-02 15: security-events: write
a39355c1fc 2026-01-02 16: steps:
a39355c1fc 2026-01-02 17: - name: Checkout code
a39355c1fc 2026-01-02 18: uses: actions/checkout@v6
a39355c1fc 2026-01-02 19:
a39355c1fc 2026-01-02 20: - name: Install Rust toolchain
699bd9270f 2026-01-02 21: uses: hecrj/setup-rust-action@v2
a39355c1fc 2026-01-02 22: with:
a39355c1fc 2026-01-02 23: rust-version: stable
a39355c1fc 2026-01-02 24:
a39355c1fc 2026-01-02 25: - uses: Swatinem/rust-cache@v2
a39355c1fc 2026-01-02 26:
a39355c1fc 2026-01-02 27: - name: Run tests
32b2d1d28d 2026-01-06 28: run: cargo test --all-targets --all-features
a39355c1fc 2026-01-02 29:
a39355c1fc 2026-01-02 30: - name: Run rust-clippy
32b2d1d28d 2026-01-06 31: run: cargo clippy --all-targets --all-features