Skip to content

Commit 61d9f6b

Browse files
Add CI check that Cargo.lock is up-to-date. (#445)
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent f436407 commit 61d9f6b

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ jobs:
8080
- doc
8181
- run-tests
8282
- typos
83+
- cargo-lock
8384
steps:
8485
- name: Decide whether all the needed jobs succeeded or failed
8586
uses: re-actors/alls-green@v1.2.2
@@ -111,6 +112,17 @@ jobs:
111112
run: cargo install --locked cargo-machete
112113
- name: Run Machete (detect unused dependencies)
113114
run: cargo machete
115+
116+
cargo-lock:
117+
runs-on: ubuntu-latest
118+
steps:
119+
- uses: actions/checkout@v4
120+
- uses: dtolnay/rust-toolchain@master
121+
with:
122+
toolchain: ${{ env.NIGHTLY_VERSION }}
123+
- name: Check Cargo.lock is up-to-date
124+
run: cargo fetch --locked
125+
114126
typos:
115127
runs-on: ubuntu-latest
116128
steps:

0 commit comments

Comments
 (0)