You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GOFMT = gofmtresult=$$(gofmt -e -l -s ${GO_FILES} ${GO_PACKAGES}); if [[ -n $$gofmtresult ]]; then echo "gofmt errors found in the following files: $${gofmtresult}"; false; fi;
36
+
32
37
all:
33
38
@echo "Use a Makefile to control top-level building of the project."
34
39
@@ -45,7 +50,16 @@ build:
45
50
${DEV_ENV_CMD} go build -ldflags ${LDFLAGS} -o ${BINARY_DEST_DIR}/boot boot.go
46
51
${DEV_ENV_CMD} upx -9 ${BINARY_DEST_DIR}/boot
47
52
48
-
test:
53
+
test: test-style test-unit
54
+
55
+
test-style:
56
+
${DEV_ENV_CMD} bash -c '${GOFMT}'
57
+
${DEV_ENV_CMD} sh -c 'go vet $(repo_path) $(GO_PACKAGES_REPO_PATH)'
0 commit comments