Skip to content

Commit

Permalink
Use --locked when testing and checking msrv
Browse files Browse the repository at this point in the history
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
  • Loading branch information
NobodyXu committed Mar 8, 2024
1 parent 0e734ee commit 52db6fd
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,9 @@ jobs:
rustup default ${{ matrix.rust }}
shell: bash

- run: cargo update

- uses: Swatinem/rust-cache@v2

- run: cargo test
- run: cargo test --locked

- name: Cache make compiled
if: ${{ !startsWith(matrix.os, 'windows') }}
Expand All @@ -51,7 +49,7 @@ jobs:
- name: Test against GNU Make from source
if: ${{ !startsWith(matrix.os, 'windows') }}
shell: bash
run: cargo test
run: cargo test --locked
env:
MAKE: /usr/local/bin/make

Expand Down Expand Up @@ -96,4 +94,4 @@ jobs:
- uses: taiki-e/install-action@cargo-hack
- uses: Swatinem/rust-cache@v2

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

0 comments on commit 52db6fd

Please sign in to comment.