Skip to content

Commit 52db6fd

Browse files
committed
Use --locked when testing and checking msrv
Signed-off-by: Jiahao XU <[email protected]>
1 parent 0e734ee commit 52db6fd

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,9 @@ jobs:
2020
rustup default ${{ matrix.rust }}
2121
shell: bash
2222

23-
- run: cargo update
24-
2523
- uses: Swatinem/rust-cache@v2
2624

27-
- run: cargo test
25+
- run: cargo test --locked
2826

2927
- name: Cache make compiled
3028
if: ${{ !startsWith(matrix.os, 'windows') }}
@@ -51,7 +49,7 @@ jobs:
5149
- name: Test against GNU Make from source
5250
if: ${{ !startsWith(matrix.os, 'windows') }}
5351
shell: bash
54-
run: cargo test
52+
run: cargo test --locked
5553
env:
5654
MAKE: /usr/local/bin/make
5755

@@ -96,4 +94,4 @@ jobs:
9694
- uses: taiki-e/install-action@cargo-hack
9795
- uses: Swatinem/rust-cache@v2
9896

99-
- run: cargo hack check --lib --rust-version --ignore-private
97+
- run: cargo hack check --lib --rust-version --ignore-private --locked

0 commit comments

Comments
 (0)