diff --git a/Makefile b/Makefile index dd87810..b7b13c6 100644 --- a/Makefile +++ b/Makefile @@ -11,7 +11,7 @@ GOTOOLS_VERSION = v0.9.3 GOLANGCI_LINT_REPO = github.com/golangci/golangci-lint GOLANGCI_LINT_VERSION = v1.51.2 -.PHONY: all help lint test golint fix-lint unit-test coverage privkey +.PHONY: all help lint test golint fix-lint unit-test coverage help: Makefile ## Print help. @@ -35,13 +35,16 @@ unit-test: ## Runs unit tests. @echo Running unit tests... @go test -timeout 30s -cover -short ./... -.PHONY: coverage coverage: ## Generates a test coverage report. @echo Generating coverage report... @go test -timeout 30s ./... -coverprofile=coverage.out -covermode=atomic @go tool cover -func=coverage.out @go tool cover -html=coverage.out +bin: ## Builds the binary + @echo Building binary + @go build -o infra9-metal-bridge ./main.go + # Tools setup $(TOOLS_DIR): mkdir -p $(TOOLS_DIR)