Skip to content

Commit 95152f5

Browse files
authored
Merge pull request #273 from fluxcd/git-diff-ci
Check if working tree is dirty in CI
2 parents af80452 + 80017e4 commit 95152f5

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)