mirror of https://github.com/stretchr/testify.git
Check go generate on builds
* Check if we have mismatching `go generate ./...` output on buildspull/877/head
parent
12fe0eb94c
commit
9cc41e665b
|
@ -5,3 +5,10 @@ if [ -n "$(gofmt -l .)" ]; then
|
|||
gofmt -d .
|
||||
exit 1
|
||||
fi
|
||||
|
||||
go generate ./...
|
||||
if [ -n "$(git status -s -uno)" ]; then
|
||||
echo "Go generate output does not match commit."
|
||||
echo "Did you forget to run go generate ./... ?"
|
||||
exit 1
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue