Skip to content

Commit 917bbdb

Browse files
committed
fix: add locked to all CI commands
1 parent d9db77d commit 917bbdb

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- name: Install Clippy
3232
run: rustup component add clippy
3333
- name: Run linter
34-
run: cargo clippy -- -D warnings
34+
run: cargo clippy --locked -- -D warnings
3535
format:
3636
runs-on: ubuntu-latest
3737
steps:
@@ -60,4 +60,4 @@ jobs:
6060
- shell: bash
6161
env:
6262
CARGO_TOKEN: ${{ secrets.CARGO_TOKEN }}
63-
run: cargo login "$CARGO_TOKEN" && cargo publish
63+
run: cargo login "$CARGO_TOKEN" && cargo publish --locked

.github/workflows/rust.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- uses: actions-rs/cargo@v1
2121
with:
2222
command: check
23-
args: --all-features
23+
args: --all-features --locked
2424

2525
test:
2626
name: Test Suite
@@ -35,6 +35,7 @@ jobs:
3535
- uses: actions-rs/cargo@v1
3636
with:
3737
command: test
38+
args: --locked
3839

3940
fmt:
4041
name: Rustfmt
@@ -66,4 +67,4 @@ jobs:
6667
- uses: actions-rs/cargo@v1
6768
with:
6869
command: clippy
69-
args: -- -D warnings
70+
args: --locked -- -D warnings

Cargo.lock

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

0 commit comments

Comments
 (0)