-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (23 loc) · 748 Bytes
/
Makefile
File metadata and controls
32 lines (23 loc) · 748 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
.PHONY: help
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
.PHONY: test-integration
test-integration: build-docker ## Run integration tests
docker-compose -f docker-compose.yaml -f docker-compose.test.yaml run web
.PHONY: build-docker
build-docker: ## Build a docker
docker-compose -f docker-compose.yaml -f docker-compose.test.yaml build
.PHONY: prettier
prettier: ## Run prettier format against YAML, JSON files.
prettier --write .
.PHONY: wire
wire: ## Run wire to generate DI
wire ./... && make format-go
.PHONY: test
test: wire
go test -v ./...
.PHONY: format-go
format-go:
go fmt ./...
.PHONY: format
format: prettier format-go