Skip to content

Commit

Permalink
Add CI check for clean repo after tests/checks
Browse files Browse the repository at this point in the history
Should catch forgotten lockfile
  • Loading branch information
sholderbach committed Nov 12, 2024
1 parent 8043edc commit 9d9275a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,17 @@ jobs:
- name: Tests
run: cargo llvm-cov nextest --all ${{ matrix.flags }} --lcov --output-path lcov.info

- name: Check for clean repo
shell: bash
run: |
if [ -n "$(git status --porcelain)" ]; then
echo "there are changes";
git status --porcelain
exit 1
else
echo "no changes in working directory";
fi
- name: Check lockfile
run: cargo check --locked ${{ matrix.flags }} --all-targets --all

Expand Down

0 comments on commit 9d9275a

Please sign in to comment.