github-ci: fail if cargo clippy --fix creates a changes

Previously this was doing fixups and only warning, not erroring. Which
could made the following clippy command pass.
pull/8237/head
Jason Ish 4 years ago committed by Victor Julien
parent 04fd2ae78e
commit 01badea65c

@ -71,7 +71,8 @@ jobs:
- run: |
diff=$(git diff)
if [ "${diff}" ]; then
echo "::warning ::Clippy --fix made changes, please fix"
echo "::error ::Clippy --fix made changes, please fix"
exit 1
fi
- run: cargo clippy --all-features
working-directory: rust

Loading…
Cancel
Save