Skip to content

Commit 432c6a5

Browse files
authored
Fail CI if Cargo.lock is not up-to-date (#126)
* Fail CI if Cargo.lock is not up-to-date Signed-off-by: Ludvig Liljenberg <[email protected]> * Update simpleguest and callbackguest Cargo.lock Signed-off-by: Ludvig Liljenberg <[email protected]> --------- Signed-off-by: Ludvig Liljenberg <[email protected]>
1 parent 7e37d2c commit 432c6a5

File tree

3 files changed

+28
-8
lines changed

3 files changed

+28
-8
lines changed

Diff for: .github/workflows/dep_rust.yml

+6
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+
cargo fetch --manifest-path src/tests/rust_guests/simpleguest/Cargo.toml --locked
53+
cargo fetch --manifest-path src/tests/rust_guests/callbackguest/Cargo.toml --locked
54+
4955
- name: Get gh action service name
5056
if: ${{ (runner.os == 'Windows' )}}
5157
run: (Get-Service actions.runner.*) | Foreach { $_.Name, $_.UserName, $_.ServiceType }

Diff for: src/tests/rust_guests/callbackguest/Cargo.lock

+11-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: src/tests/rust_guests/simpleguest/Cargo.lock

+11-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)