Skip to content

Commit

Permalink
ci(code_check): add --locked to cargo steps
Browse files Browse the repository at this point in the history
`--locked` indicate to not check dependency new version.
This can reduce step duration, and get locked to versions specified in Cargo.lock.

tips from https://corrode.dev/blog/tips-for-faster-ci-builds/#use-the-locked-flag
  • Loading branch information
gwen-lg committed Feb 8, 2025
1 parent 50b32bd commit 2800af2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/code_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@ jobs:
id: cargo_clippy
if: $${{ always() }}
run: |
cargo clippy --profile=test --features ${{ matrix.features }}
cargo clippy --locked --profile=test --features ${{ matrix.features }}
- name: "Cargo test"
id: cargo_test
if: $${{ always() }}
run: |
cargo test --features ${{ matrix.features }}
cargo test --locked --features ${{ matrix.features }}
- name: "Cargo formatting"
id: cargo_fmt
Expand Down

0 comments on commit 2800af2

Please sign in to comment.