⭐
Log in to mark this repository.
CI: clippy over every target, against the lockfile, in checks
f9dd35b · Gabe Morell · 2026-11-05 00:31
Message
{commit_body(@commit)}
Files changed
modified
.forgejo/workflows/checks.yml
+7
−2
@@ -1,5 +1,5 @@
| 1 | 1 | name: checks |
| 2 | −# A pull request's build and tests: the workspace compiled with the | |
| 2 | +# A pull request's build, tests and clippy: the workspace compiled with the | |
| 3 | 3 | # Dockerfile's toolchain and `cargo test` against a throwaway Postgres |
| 4 | 4 | # (tests/search_integration.rs runs only when DMS_TEST_DATABASE_URL is |
| 5 | 5 | # set, each test in a schema of its own). Every pull request — the |
@@ -52,7 +52,7 @@ jobs:
| 52 | 52 | # over anything a workflow says. |
| 53 | 53 | - name: Rust |
| 54 | 54 | run: | |
| 55 | − curl -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain 1.92.0 | |
| 55 | + curl -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain 1.92.0 -c clippy | |
| 56 | 56 | echo "$HOME/.cargo/bin" >> "$GITHUB_PATH" |
| 57 | 57 | |
| 58 | 58 | - name: Build |
@@ -60,3 +60,8 @@ jobs:
| 60 | 60 | |
| 61 | 61 | - name: Test |
| 62 | 62 | run: cargo test --locked --workspace |
| 63 | + | |
| 64 | + # Every warning clippy or rustc raises fails the run: the one | |
| 65 | + # command every Rust repository on the forge gates on. | |
| 66 | + - name: Clippy | |
| 67 | + run: cargo clippy --workspace --all-targets --locked -- -D warnings |
Parents: 029349b