Skip to content

Commit 35807a0

Browse files
chore(ci): add --locked to cargo clippy and cargo test
1 parent 5f7283d commit 35807a0

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
components: clippy
4141

4242
- name: Run clippy
43-
run: cargo clippy --all-features -- -D warnings
43+
run: cargo clippy --locked --all-features -- -D warnings
4444

4545
cargo-hack:
4646
name: cargo-hack / 1.95.0
@@ -81,13 +81,13 @@ jobs:
8181
toolchain: ${{ matrix.rust }}
8282

8383
- name: Run tests
84-
run: cargo test
84+
run: cargo test --locked
8585

8686
- name: Run tests (--features websocket,portable-atomic)
87-
run: cargo test --features websocket,portable-atomic
87+
run: cargo test --locked --features websocket,portable-atomic
8888

8989
- name: Run tests (--no-default-features --features ring,getrandom)
90-
run: cargo test --no-default-features --features ring,getrandom
90+
run: cargo test --locked --no-default-features --features ring,getrandom
9191

9292
- name: Run tests (--no-default-features --features graviola,getrandom)
93-
run: cargo test --no-default-features --features graviola,getrandom
93+
run: cargo test --locked --no-default-features --features graviola,getrandom

‎.gitlab-ci.yml‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ rust:clippy:
2424
- apk add build-base linux-headers cmake perl go
2525
- rustup component add clippy
2626
script:
27-
- cargo clippy --all-features -- -D warnings
27+
- cargo clippy --locked --all-features -- -D warnings
2828

2929
rust:hack:
3030
stage: test
@@ -40,7 +40,7 @@ rust:test:
4040
before_script:
4141
- apk add cmake perl go
4242
script:
43-
- cargo test
44-
- cargo test --features websocket,portable-atomic
45-
- cargo test --no-default-features --features ring,getrandom
46-
- cargo test --no-default-features --features graviola,getrandom
43+
- cargo test --locked
44+
- cargo test --locked --features websocket,portable-atomic
45+
- cargo test --locked --no-default-features --features ring,getrandom
46+
- cargo test --locked --no-default-features --features graviola,getrandom

0 commit comments

Comments
 (0)