From 3e7dbd3234d8532d130b09333dc895e873021cee Mon Sep 17 00:00:00 2001 From: DJ Date: Mon, 30 Mar 2026 19:48:05 -0700 Subject: [PATCH] ci: add cargo clippy lint step Add clippy component to the Rust toolchain and run cargo clippy with -D warnings after cargo check to catch common lint issues in CI. Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fc8c481..0cf1e2e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,7 +24,7 @@ jobs: - name: Install Rust toolchain uses: dtolnay/rust-toolchain@stable with: - components: rustfmt + components: rustfmt, clippy - name: Restore Cargo cache uses: Swatinem/rust-cache@v2 @@ -35,5 +35,8 @@ jobs: - name: Run cargo check run: cargo check --locked --all-targets + - name: Run cargo clippy + run: cargo clippy --locked --all-targets -- -D warnings + - name: Run cargo test run: cargo test --locked