Skip to content

Commit acdf852

Browse files
Add locked flag to Rust cargo commands
Signed-off-by: Akash Kumar <meakash7902@gmail.com>
1 parent 1a7c4d1 commit acdf852

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/reusable-test-policy-rust.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
rustup override set stable
3232
shell: bash
3333
- name: Run Cargo check
34-
run: cargo check --workspace
34+
run: cargo check --workspace --locked
3535
shell: bash
3636

3737
test:
@@ -45,7 +45,7 @@ jobs:
4545
rustup override set stable
4646
shell: bash
4747
- name: Run Cargo test
48-
run: cargo test --workspace
48+
run: cargo test --workspace --locked
4949
shell: bash
5050
e2e-tests:
5151
name: E2E testSuite
@@ -85,4 +85,4 @@ jobs:
8585
rustup toolchain install stable --profile minimal --target wasm32-wasip1 --component clippy
8686
rustup override set stable
8787
- name: Run Cargo clippy
88-
run: cargo clippy --workspace -- -D warnings
88+
run: cargo clippy --workspace --locked -- -D warnings

policy-build-rust/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ runs:
2222
rustup override set stable
2323
- name: Build Wasm module
2424
shell: bash
25-
run: cargo build --target=wasm32-wasip1 --release
25+
run: cargo build --target=wasm32-wasip1 --release --locked
2626
- name: Rename Wasm module
2727
shell: bash
2828
run: |

0 commit comments

Comments
 (0)