Skip to content

ci: GitHub Actions — format, clippy -D warnings, test, coverage#2

Merged
dkijania merged 1 commit into
mainfrom
ci/github-actions
Jun 18, 2026
Merged

ci: GitHub Actions — format, clippy -D warnings, test, coverage#2
dkijania merged 1 commit into
mainfrom
ci/github-actions

Conversation

@dkijania

Copy link
Copy Markdown
Collaborator

Adds .github/workflows/ci.yml — the repo had no CI (flagged in the audit from #1).

Gates (on every PR)

  • formatcargo fmt --all -- --check. Cheap (no dependency build).
  • clippycargo clippy --workspace --all-targets --locked -- -D warnings. Blocking; the tree is clean today.
  • testcargo build + cargo test --workspace --locked (the live-network e2e is #[ignore]d, so it's skipped here).
  • coveragecargo tarpaulin over the owned crates (vendored transport.rs excluded), reported via job summary + uploaded cobertura.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 via workflow_dispatch, to catch protocol/seed drift.

Notes

  • concurrency cancels superseded runs so heavy proof-systems builds don't pile up.
  • Installs build-essential pkg-config libssl-dev (proof-systems/kimchi need a C toolchain + openssl); Swatinem/rust-cache warms the dependency build across runs.
  • Toolchain comes from rust-toolchain.toml (1.94.1 + rustfmt + clippy).
  • Validated locally: fmt clean, clippy --all-targets -D warnings clean (exit 0), cargo test --workspace green.

🤖 Generated with Claude Code

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
@dkijania dkijania merged commit 30c03f2 into main Jun 18, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant