Skip to content

Instantly share code, notes, and snippets.

@jwarwani
Created January 11, 2019 21:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jwarwani/eff3f7eeb9f26b504a0eebfbeef80936 to your computer and use it in GitHub Desktop.
Save jwarwani/eff3f7eeb9f26b504a0eebfbeef80936 to your computer and use it in GitHub Desktop.
Build A Go API: Pre-Push
#!/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