Created
September 22, 2017 20:45
-
-
Save leongaban/4eea4ae1cb96097cf4f648c7821ea17f to your computer and use it in GitHub Desktop.
githooks pre-push
This file contains hidden or 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 | |
yarn run test-eslint | |
RESULT=$? | |
[ $RESULT -ne 0 ] && exit 1 | |
yarn run test-jest | |
RESULT=$? | |
[ $RESULT -ne 0 ] && exit 1 | |
exit 0 | |
# npm install git-hooks first |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment