Skip to content

Commit

Permalink
Fail CI if Cargo.lock is not up-to-date (#126)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
ludfjig authored Jan 16, 2025
1 parent 7e37d2c commit 432c6a5
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 8 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/dep_rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ jobs:
- name: clippy
run: just clippy ${{ matrix.config }}

- name: Ensure up-to-date Cargo.lock
run: |
cargo fetch --locked
cargo fetch --manifest-path src/tests/rust_guests/simpleguest/Cargo.toml --locked
cargo fetch --manifest-path src/tests/rust_guests/callbackguest/Cargo.toml --locked
- name: Get gh action service name
if: ${{ (runner.os == 'Windows' )}}
run: (Get-Service actions.runner.*) | Foreach { $_.Name, $_.UserName, $_.ServiceType }
Expand Down
15 changes: 11 additions & 4 deletions src/tests/rust_guests/callbackguest/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 11 additions & 4 deletions src/tests/rust_guests/simpleguest/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 432c6a5

Please sign in to comment.