ci: GitHub Actions — format, clippy -D warnings, test, coverage#2
Merged
Conversation
Adds .github/workflows/ci.yml with four PR gates — cargo fmt --check, clippy --all-targets -D warnings, cargo test --workspace, and cargo-tarpaulin coverage (owned crates, vendored transport.rs excluded; reported via job summary + artifact, not yet gated). The live-devnet e2e runs on a daily schedule / workflow_dispatch (it needs the p2p network). concurrency cancels superseded runs to avoid piling up heavy proof-systems builds. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0117RNu925HJ97mFHLbQG4Y9
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.
Adds
.github/workflows/ci.yml— the repo had no CI (flagged in the audit from #1).Gates (on every PR)
cargo fmt --all -- --check. Cheap (no dependency build).cargo clippy --workspace --all-targets --locked -- -D warnings. Blocking; the tree is clean today.cargo build+cargo test --workspace --locked(the live-network e2e is#[ignore]d, so it's skipped here).cargo tarpaulinover the owned crates (vendoredtransport.rsexcluded), reported via job summary + uploadedcobertura.xml/ HTML artifact. Not yet gated — add--fail-under <n>to make it block.Live e2e
The trust-gate end-to-end test joins the real devnet p2p network, so it can't run on a normal PR. It runs on a daily schedule (
0 6 * * *) and viaworkflow_dispatch, to catch protocol/seed drift.Notes
concurrencycancels superseded runs so heavy proof-systems builds don't pile up.build-essential pkg-config libssl-dev(proof-systems/kimchi need a C toolchain + openssl);Swatinem/rust-cachewarms the dependency build across runs.rust-toolchain.toml(1.94.1 + rustfmt + clippy).clippy --all-targets -D warningsclean (exit 0),cargo test --workspacegreen.🤖 Generated with Claude Code