Skip to content

Commit

Permalink
chore(makefile): rename targets
Browse files Browse the repository at this point in the history
  • Loading branch information
danroc committed Dec 16, 2024
1 parent 645ae6f commit 57ce025
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

# =============================================================================
Expand Down Expand Up @@ -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

# =============================================================================
Expand Down

0 comments on commit 57ce025

Please sign in to comment.