Skip to content

Commit cfc1164

Browse files
committed
Fail the CI lint if running linting dirties work tree
Signed-off-by: Ryan Levick <[email protected]>
1 parent 88373dd commit cfc1164

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
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()

examples/spin-timer/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)