Skip to content

Commit 6006a5a

Browse files
committed
Check for changed files during the CI tests
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.
1 parent 374f5af commit 6006a5a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,6 @@ jobs:
6060
run: cargo build --all-targets
6161
- name: Run tests
6262
run: cargo test --all-targets --verbose
63+
# Ensure that no files (most likely the Cargo.lock file) have changed
64+
- name: Unstaged Changes
65+
run: git diff --exit-code

0 commit comments

Comments
 (0)