Skip to content

Commit 0491ad6

Browse files
branchseerclaude
andcommitted
chore(ci): allow clippy failures to not abort test execution
Make clippy non-blocking so tests still run even when clippy fails, while preserving the job failure via a deferred check at the end. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 1767dee commit 0491ad6

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,10 @@ jobs:
6464
env:
6565
RUSTFLAGS: '-D warnings --cfg tokio_unstable' # also update .cargo/config.toml
6666

67-
- run: cargo clippy --all-targets --all-features -- -D warnings
67+
- name: Clippy
68+
id: clippy
69+
continue-on-error: true
70+
run: cargo clippy --all-targets --all-features -- -D warnings
6871

6972
# Set up node and pnpm for running tests
7073
# For x86_64-apple-darwin, use x64 node for fspy tests that verify Node.js fs accesses
@@ -87,6 +90,10 @@ jobs:
8790
- run: cargo-zigbuild test --target x86_64-unknown-linux-gnu.2.17
8891
if: ${{ matrix.os == 'ubuntu-latest' }}
8992

93+
- name: Check clippy result
94+
if: ${{ steps.clippy.outcome == 'failure' }}
95+
run: exit 1
96+
9097
fmt:
9198
name: Format and Check Deps
9299
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)