mirror of
https://github.com/stretchr/testify.git
synced 2025-04-27 13:13:19 +00:00
Check go generate on builds
* Check if we have mismatching `go generate ./...` output on builds
This commit is contained in:
parent
12fe0eb94c
commit
9cc41e665b
@ -5,3 +5,10 @@ if [ -n "$(gofmt -l .)" ]; then
|
|||||||
gofmt -d .
|
gofmt -d .
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
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…
x
Reference in New Issue
Block a user