Skip to content

Commit

Permalink
chore: check lockfile on CI in a separate job
Browse files Browse the repository at this point in the history
It makes sense to check the lockfile on a vanilla checkout and not
one that ran already some jobs. Hence put that check into a separate
job.
  • Loading branch information
vmx committed Mar 26, 2024
1 parent 1c729b4 commit c3014d6
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,15 @@ jobs:
- name: Test with default features
run: cargo test --all-features

- name: Make sure the lockfile is up-to-date
check-lockfile:
name: Make sure the lockfile is up-to-date
runs-on: ubuntu-latest
steps:
- name: Checkout Sources
uses: actions/checkout@v4

- name: Install Rust Toolchain
uses: dtolnay/rust-toolchain@master

- name: Error if checked-in lockfile is not up-to-date
run: cargo build --locked

0 comments on commit c3014d6

Please sign in to comment.