Skip to content

Commit

Permalink
Fail the CI lint if running linting dirties work tree
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Levick <[email protected]>
  • Loading branch information
rylev committed Oct 16, 2023
1 parent 88373dd commit cfc1164
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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
2 changes: 1 addition & 1 deletion examples/spin-timer/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit cfc1164

Please sign in to comment.