Skip to content

ci: enforce --locked for cargo invocations and add lockfile integrity check - #1701

Open
GangDev6707 wants to merge 1 commit into
DistinctCodes:mainfrom
GangDev6707:ci/enforce-cargo-locked-1651
Open

GangDev6707 wants to merge 1 commit into
DistinctCodes:mainfrom
GangDev6707:ci/enforce-cargo-locked-1651

Conversation

@GangDev6707

Copy link
Copy Markdown

Summary of Changes

  • Enforces the --locked flag on all cargo invocations in .github/workflows/CI.yaml (clippy, test, build, build-wasm, and wasm-size-delta).
  • Adds a dedicated lockfile job that fails if cargo metadata --locked detects that Cargo.lock is out of sync with Cargo.toml.
  • Updates contracts/scripts/deploy.sh to include --locked when compiling release WASM packages.
  • Syncs contracts/Cargo.lock with workspace dependencies to ensure clean --locked verification.

Closes #1651

… check

- Adds --locked flag to cargo clippy, test, build, and wasm build commands in CI.yaml and deploy.sh
- Adds dedicated lockfile integrity check job running cargo metadata --locked to catch unsynced Cargo.lock changes early
- Syncs contracts/Cargo.lock with workspace dependencies so CI lockfile verification succeeds

Closes DistinctCodes#1651
@vercel

vercel Bot commented Nov 5, 2026

Copy link
Copy Markdown

@GangDev6707 is attempting to deploy a commit to the naijabuz's projects Team on Vercel.

A member of the Team first needs to authorize it.

This branch has not been deployed

No deployments
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.

Use --locked for cargo build, test, clippy and audit commands in CI

1 participant