From fd553ccce9c76652c4fd0b5295a354bc62865c5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Noah=20Bayindirli=20=F0=9F=A5=82?= Date: Thu, 23 Jan 2025 15:53:23 -0700 Subject: [PATCH] ci: actually fail cargo clippy on warnings --- .github/workflows/lint.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index ff53993b..3bfcc274 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -47,10 +47,14 @@ jobs: run: cargo-sort --workspace --check --check-format - name: Run cargo clippy (no features) - run: cargo clippy --workspace --no-default-features --allow-dirty --fix -- -D warnings + run: | + echo "run `cargo clippy --workspace --no-default-features --allow-dirty --fix -- -D warnings` locally to fix clippy warnings" + cargo clippy --workspace --no-default-features -- -D warnings - name: Run cargo clippy (all features) - run: cargo clippy --workspace --all-features --allow-dirty --fix -- -D warnings + run: | + echo "run `cargo clippy --workspace --all-features --allow-dirty --fix -- -D warnings` locally to fix clippy warnings" + cargo clippy --workspace --all-features -- -D warnings - name: Run cargo doc run: cargo doc --no-deps --workspace