-
-
Save jwarwani/eff3f7eeb9f26b504a0eebfbeef80936 to your computer and use it in GitHub Desktop.
Build A Go API: Pre-Push
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 | |
# pre-push hook to run go test | |
echo "\nRunning go test:\n" | |
go test commlogs -count=1 | |
if [[ "$?" -ne 0 ]]; then | |
echo "Tests failed" | |
exit 1 | |
fi | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment