Skip to content

Commit b6f81fa

Browse files
authored
Merge pull request #673 from pietroalbini/ci-locked
Prevent Cargo.toml changes without an updated Cargo.lock
2 parents 05a6190 + 9baecd0 commit b6f81fa

File tree

2 files changed

+11
-12
lines changed

2 files changed

+11
-12
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

Cargo.lock

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

0 commit comments

Comments
 (0)