neiam
/neiam-portal
public · Issues · Pulls · Labels · Forks · Compare · Actions success · Badges · Packages
⭐
Log in to mark this repository.
CI: clippy gates the publish
07932d7 · Gabe Morell · 2026-11-05 00:28
Message
{commit_body(@commit)}
Files changed
modified
.forgejo/workflows/publish.yml
+11
−0
@@ -83,6 +83,17 @@ jobs:
| 83 | 83 | |
| 84 | 84 | "$CARGO_HOME/bin/cargo" --version |
| 85 | 85 | |
| 86 | + # Every warning clippy or rustc raises fails the run, before anything is | |
| 87 | + # packaged. The forge-wide command minus `--locked`: this is a library, | |
| 88 | + # its Cargo.lock is ignored rather than committed, so there is no | |
| 89 | + # lockfile to hold the resolve to. The component is added on its own | |
| 90 | + # line because the toolchain may come back from the cache without it. | |
| 91 | + - name: Clippy | |
| 92 | + run: | | |
| 93 | + set -euo pipefail | |
| 94 | + rustup component add clippy | |
| 95 | + cargo clippy --workspace --all-targets -- -D warnings | |
| 96 | + | |
| 86 | 97 | # The registry is per repository: its index lives under this repository's |
| 87 | 98 | # own path, and the name a consumer registers it under is the repository |
| 88 | 99 | # name. Cargo takes an index from configuration only, never a flag — and |
Parents: f53fb39