Skip to content

Commit

Permalink
chore(makefile): rename targets (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
danroc authored Dec 16, 2024
1 parent 645ae6f commit 12566b6
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 24 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-test-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
go-version: '^1.23.2'

- name: Install tools
run: make deps.tools
run: make deps-tools

- name: Build
run: make build
Expand All @@ -31,7 +31,7 @@ jobs:
run: make lint

- name: Tidy dependencies
run: make deps.tidy
run: make deps-tidy

- name: Run tests
run: make test
Expand Down
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 12566b6

Please sign in to comment.