Skip to content

Commit

Permalink
Merge pull request #1894 from fermyon/fail-linting-on-dirty-diff
Browse files Browse the repository at this point in the history
Fail the CI lint if running linting dirties work tree
  • Loading branch information
rylev authored Oct 16, 2023
2 parents ad9d6ad + cfc1164 commit be6e2ef
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ jobs:
rust-cache: true

- name: Run lints
run:
BUILD_SPIN_EXAMPLES=0 make lint
run: |
BUILD_SPIN_EXAMPLES=0 make lint
git diff --quiet . || (echo "Git working tree dirtied by lints. Run `make lint` and check in changes" && exit 1)
- name: Cancel everything if linting fails
if: failure()
Expand Down

0 comments on commit be6e2ef

Please sign in to comment.