Skip to content

Commit

Permalink
Build in CI with --locked
Browse files Browse the repository at this point in the history
This ensures the Cargo.lock file stays up to date. If someone add or
change a dependency in a way that require lockfile changes, the CI
should fail. When the lockfile is versioned it has to stay up to date
  • Loading branch information
faern committed May 29, 2024
1 parent 49e9a78 commit b23778d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
default: true

- name: Build
run: cargo build --all-targets
run: cargo build --all-targets --locked

- name: Test
# Since the tests modify global state (the system firewall) they cannot run in parallel.
Expand Down

0 comments on commit b23778d

Please sign in to comment.