Skip to content

Commit

Permalink
Add a CI check to ensure Cargo.lock file remains up-to-date (#597)
Browse files Browse the repository at this point in the history
* Add a CI check to ensure Cargo.lock file remains up-to-date

This adds a new CI "cargo-verification" check to ensure the `Cargo.lock`
file is valid for the current state of all manifests within the
workspace. This avoids having `Cargo.lock` files changes leak into
unrelated PRs, and allows tools like Nix to always have a valid lock
file present at each published release to ensure reproducible builds.

* Use default features, targets for lock file check
  • Loading branch information
mitchmindtree authored Sep 8, 2022
1 parent 142fc32 commit 5f35286
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ jobs:
args: --all-targets --all-features
- command: make
args: build
- command: check
args: --locked --workspace
- command: test
args: --all-targets --all-features --workspace --exclude fuel-p2p
- command: test
Expand Down
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5f35286

Please sign in to comment.