Skip to content

Commit

Permalink
ci: actually fail cargo clippy on warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
nbayindirli committed Jan 23, 2025
1 parent c5a061e commit fd553cc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fd553cc

Please sign in to comment.