Skip to content

Commit

Permalink
Check for changed files during the CI tests
Browse files Browse the repository at this point in the history
If dependencies are updated by a change, the lock file should be updated
to match. If it is out of sync it will be updated during the build and
be left as an unstaged change. If there are any unstaged changes at the
end of the build, the CI should now fail.
  • Loading branch information
tpoliaw committed Feb 11, 2025
1 parent 248845d commit 16925b9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,6 @@ jobs:
run: cargo build --all-targets
- name: Run tests
run: cargo test --all-targets --verbose
# Ensure that no files (most likely the Cargo.lock file) have changed
- name: Cargo Lock
run: git diff --exit-code

0 comments on commit 16925b9

Please sign in to comment.