Skip to content

Commit 42577f5

Browse files
committed
Fail CI if Cargo.lock is not up-to-date
Signed-off-by: Ludvig Liljenberg <[email protected]>
1 parent e79ec96 commit 42577f5

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.github/workflows/dep_rust.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ jobs:
4646
- name: clippy
4747
run: just clippy ${{ matrix.config }}
4848

49+
- name: Ensure up-to-date Cargo.lock
50+
run: |
51+
cargo fetch --locked
52+
cd src/tests/rust_guests/simpleguest/ && cargo fetch --locked
53+
cd src/tests/rust_guests/callbackguest/ && cargo fetch --locked
54+
4955
- name: Get gh action service name
5056
if: ${{ (runner.os == 'Windows' )}}
5157
run: (Get-Service actions.runner.*) | Foreach { $_.Name, $_.UserName, $_.ServiceType }

Cargo.lock

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

0 commit comments

Comments
 (0)