Skip to content

Commit

Permalink
Add pre-commit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
arp242 committed Nov 5, 2019
1 parent 9e5ea40 commit a9b9116
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions bin/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/sh

set -eu

exec 1>&2 # Redirect output to stderr.
go generate ./... # Make sure generated files are up-to-date
go vet ./... # vet reports serious errors
go test ./... # Tests must pass.

exit 0

0 comments on commit a9b9116

Please sign in to comment.