Skip to content

Commit b298dbf

Browse files
committed
ci: pass --locked to the build and test commands
This will prevent Cargo.toml changes from landing without the Cargo.lock being up to date.
1 parent 05a6190 commit b298dbf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
echo "::set-env name=CRATESFYI_DATABASE_URL::postgresql://$(whoami)@%2Fvar%2Frun%2Fpostgresql/$(whoami)"
2929
3030
- name: Build docs.rs
31-
run: cargo build
31+
run: cargo build --locked
3232

3333
- name: Prepare the test environment
3434
run: |
@@ -37,7 +37,7 @@ jobs:
3737
echo "::set-env name=CRATESFYI_PREFIX::${prefix}"
3838
3939
- name: Test docs.rs
40-
run: cargo test -- --test-threads=1
40+
run: cargo test --locked -- --test-threads=1
4141

4242
docker:
4343
name: Docker

0 commit comments

Comments
 (0)