Skip to content

Commit 80017e4

Browse files
committed
Check if working tree is dirty in CI
Signed-off-by: Stefan Prodan <[email protected]>
1 parent af80452 commit 80017e4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/build.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,10 @@ jobs:
3030
uses: ./.github/actions/run-tests
3131
env:
3232
GOPATH: /github/home/go
33+
- name: Check if working tree is dirty
34+
run: |
35+
if [[ $(git diff --stat) != '' ]]; then
36+
git --no-pager diff
37+
echo 'run make test and commit changes'
38+
exit 1
39+
fi

0 commit comments

Comments
 (0)