From df0cc4aa58838d29877fcf7d750f9ade7d5d9c46 Mon Sep 17 00:00:00 2001 From: Mike Mason Date: Mon, 17 Jul 2023 19:47:21 +0000 Subject: [PATCH] update makefile --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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)