From 57ce02586d7c13959484b70112bb6db44a0f4adf Mon Sep 17 00:00:00 2001 From: Daniel Rocha <68558152+danroc@users.noreply.github.com> Date: Tue, 17 Dec 2024 00:37:03 +0100 Subject: [PATCH] chore(makefile): rename targets --- Makefile | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/Makefile b/Makefile index 915ac6a..792bd80 100644 --- a/Makefile +++ b/Makefile @@ -26,38 +26,38 @@ RESET := \033[0m # ============================================================================= .PHONY: lint -lint: lint.lines lint.revive lint.sec lint.vet ## Run all linters +lint: lint-lines lint-revive lint-sec lint-vet ## Run all linters -.PHONY: lint.lines -lint.lines: ## Lint lines length +.PHONY: lint-lines +lint-lines: ## Lint lines length golines -w -m 79 --base-formatter=gofumpt . -.PHONY: lint.revive -lint.revive: ## Run revive linter +.PHONY: lint-revive +lint-revive: ## Run revive linter revive -config revive.toml ./... -.PHONY: lint.sec -lint.sec: ## Run gosec linter +.PHONY: lint-sec +lint-sec: ## Run gosec linter gosec --exclude-dir=internal/tools ./... -.PHONY: lint.vet -lint.vet: ## Run go-vet linter +.PHONY: lint-vet +lint-vet: ## Run go-vet linter go vet ./... # ============================================================================= # @Dependencies # ============================================================================= -.PHONY: deps.tidy -deps.tidy: ## Tidy up dependencies +.PHONY: deps-tidy +deps-tidy: ## Tidy up dependencies go mod tidy -.PHONY: deps.update -deps.update: ## Update dependencies +.PHONY: deps-update +deps-update: ## Update dependencies go get -u ./... -.PHONY: deps.tools -deps.tools: ## Install development dependencies +.PHONY: deps-tools +deps-tools: ## Install development dependencies $(MAKE) -C internal/tools install # ============================================================================= @@ -88,19 +88,19 @@ docker: ## Build docker image # ============================================================================= .PHONY: test -test: test.unit test.e2e ## Run all tests +test: test-unit test-e2e ## Run all tests -.PHONY: test.unit -test.unit: ## Run unit tests +.PHONY: test-unit +test-unit: ## Run unit tests go test -coverprofile=coverage.out ./... -.PHONY: test.e2e -test.e2e: ## Run end-to-end tests +.PHONY: test-e2e +test-e2e: ## Run end-to-end tests docker build -f tests/Dockerfile -t geoblock-tests . docker run --rm geoblock-tests -.PHONY: test.coverage -test.coverage: test.unit ## Generate coverage report +.PHONY: test-coverage +test-coverage: test-unit ## Generate coverage report gocover-cobertura < coverage.out > coverage.xml # =============================================================================