Skip to content

Commit

Permalink
apply gofmt on ./.circleci/test.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
vvakame committed Nov 13, 2018
1 parent c656dc3 commit 6a77af1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .circleci/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,14 @@

set -eu

echo "### go code formatting"
go fmt ./...

echo "### go generating"
go generate ./...

if [[ $(git --no-pager diff) ]] ; then
echo "you need to run go generate"
echo "you need to run `go fmt` or `go generate`"
git --no-pager diff
exit 1
fi
Expand Down

0 comments on commit 6a77af1

Please sign in to comment.