mirror of
https://github.com/kemko/nomad.git
synced 2026-01-07 19:05:42 +03:00
Merge pull request #1491 from nak3/add-format-to-test
Add go fmt before running test in Makefile
This commit is contained in:
@@ -27,6 +27,11 @@ cov:
|
||||
open /tmp/coverage.html
|
||||
|
||||
test: generate
|
||||
@echo "--> Running go fmt" ;
|
||||
@if [ -n "`go fmt ${PACKAGES}`" ]; then \
|
||||
echo "[ERR] go fmt updated formatting. Please commit formatted code first."; \
|
||||
exit 1; \
|
||||
fi
|
||||
@sh -c "'$(PWD)/scripts/test.sh'"
|
||||
@$(MAKE) vet
|
||||
|
||||
|
||||
Reference in New Issue
Block a user