Skip to content

Commit f72bb26

Browse files
authored
ci: Require up-to-date workspace in more places (#3604)
1 parent 3b9a419 commit f72bb26

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.github/workflows/CI.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
with:
2424
save-if: ${{ github.ref == 'refs/heads/main' }}
2525
- name: Check
26-
run: cargo clippy --workspace --all-targets --all-features -- -D warnings
26+
run: cargo clippy --locked --workspace --all-targets --all-features -- -D warnings
2727
- name: Check
2828
run: cargo clippy --manifest-path examples/Cargo.toml --workspace --all-targets --all-features -- -D warnings
2929
- name: rustfmt
@@ -93,9 +93,9 @@ jobs:
9393
with:
9494
save-if: ${{ github.ref == 'refs/heads/main' }}
9595
- name: Run tests
96-
run: cargo test --workspace --all-features --all-targets
96+
run: cargo test --locked --workspace --all-features --all-targets
9797
- name: Test examples
98-
run: cargo test --manifest-path examples/Cargo.toml --workspace --all-features --all-targets
98+
run: cargo test --locked --manifest-path examples/Cargo.toml --workspace --all-features --all-targets
9999

100100
# some examples don't support our MSRV so we only test axum itself on our MSRV
101101
test-nightly:
@@ -170,7 +170,7 @@ jobs:
170170
with:
171171
save-if: ${{ github.ref == 'refs/heads/main' }}
172172
- name: Run doc tests
173-
run: cargo test --all-features --doc
173+
run: cargo test --locked --all-features --doc
174174

175175
deny-check:
176176
name: cargo-deny check

examples/Cargo.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)