Last active
March 3, 2023 22:19
-
-
Save eighty4/b121c49cf3047e64f931c32ceb9a0b01 to your computer and use it in GitHub Desktop.
An appropriate pre-push Git hook for Flutter projects
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e | |
flutter test | |
flutter analyze | |
dart format lib test --set-exit-if-changed | |
git diff --exit-code |
Author
eighty4
commented
Feb 7, 2023
•
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment