From 9d9275a37d26f3e45a51a221723d25817c3348dd Mon Sep 17 00:00:00 2001 From: sholderbach Date: Tue, 12 Nov 2024 16:18:36 +0100 Subject: [PATCH] Add CI check for clean repo after tests/checks Should catch forgotten lockfile --- .github/workflows/ci.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 209a54bd..e2bb3f8f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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