Repository navigation
ci: scaffold crate and CI gates (LAB-5116) - #1
Merged
Merged
Conversation
Contributor
Author
|
Gate proof. The two
cargo-deny was checked locally against the same Squash-merge this PR so the proof commits stay out of |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Sets up the crate and the CI that every later change builds on.
cachekit-cli(edition 2021) that prints its version, with one integration test that runs the built binary.ci.ymlon GitHub-hostedubuntu-latestandmacos-latest, for pull requests and pushes tomain. Actions are pinned to commit SHAs and the token is read-only.checks(Linux): admin API grep over the source, the crates.io-only step, cargo-deny, rustfmt, and clippy with-D warnings.test(Linux and macOS):cargo test --locked, a release build, and the admin API grep over the release binary.deny.tomldenies git sources and unknown registries, andwildcards = "deny"rejects versionless path dependencies. cargo-deny cannot see two further routes, so a CI step closes them: any committed.cargo/configor.cargo/config.toml, which could replace the crates.io source, and any path dependency outside the workspace that declares a version. Only the MIT licence is allowed until a dependency needs another./api/admin|platform-admins|flagship. A grep error, such as a missing binary, also fails the job, so an error can never pass as a clean result.A deliberate-hit commit on this branch proved the gate fails, and a later commit removed it. The run links are in the comment below. Squash-merge so the proof commits stay out of
main.