Skip to content

Commit be6e2ef

Browse files
authored
Merge pull request #1894 from fermyon/fail-linting-on-dirty-diff
Fail the CI lint if running linting dirties work tree
2 parents ad9d6ad + cfc1164 commit be6e2ef

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@ jobs:
3636
rust-cache: true
3737

3838
- name: Run lints
39-
run:
40-
BUILD_SPIN_EXAMPLES=0 make lint
39+
run: |
40+
BUILD_SPIN_EXAMPLES=0 make lint
41+
git diff --quiet . || (echo "Git working tree dirtied by lints. Run `make lint` and check in changes" && exit 1)
4142
4243
- name: Cancel everything if linting fails
4344
if: failure()

0 commit comments

Comments
 (0)