Skip to content

Commit b4a0dc1

Browse files
KinflouKinflou
andauthored
ci: lint with --locked, so a stale Cargo.lock fails a required check (#168)
Co-authored-by: Kinflou <ossdevlev@proton.me>
1 parent 4a1d512 commit b4a0dc1

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎.github/workflows/ci.yml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,10 @@ jobs:
5656
- uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3
5757
- name: rustfmt
5858
run: cargo fmt --check
59+
# `--locked`: Cargo.lock is committed, and release.yml builds with it.
60+
# A pin moved without the lock (cli#166) fails here, not at release.
5961
- name: clippy
60-
run: cargo clippy --all-targets -- -D warnings
62+
run: cargo clippy --locked --all-targets -- -D warnings
6163
- name: clippy (without gen-wasm)
6264
run: cargo clippy --all-targets --no-default-features --features gen-rust,gen-typescript -- -D warnings
6365
- name: rustfmt (fixture generators)

0 commit comments

Comments
 (0)