-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
47 lines (40 loc) · 1.27 KB
/
Makefile
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
.PHONY run server dev:
dev:
@echo "Running server..."
@cd cmd && go run main.go
.PHONY up docker dev:
docker-up:
@echo "Running docker..."
@docker-compose -f docker-compose-dev.yaml up -d
.PHONY run unit test:
unit-test:
@echo "Running unit tests..."
@cd test/unit_test && go test -v ./...
.PHONY run integration test:
integration-test:
@echo "Running integration tests..."
@cd test/integration_test && go test -v ./...
.PHONY run e2e test:
e2e-test:
@echo "Running e2e tests..."
@cd test/e2e_test && go test -v ./...
.PHONY run all test:
all-test:
@echo "Running all tests..."
@cd test && go test -v ./...
.PHONY down docker dev:
docker-down:
@echo "Stopping docker..."
@docker-compose -f docker-compose-dev.yaml down -v
.PHONY generate proto:
protoc:
@go install github.com/grpc-ecosystem/grpc-gateway/v2/[email protected]
@go install google.golang.org/protobuf/cmd/[email protected]
@go install google.golang.org/grpc/cmd/[email protected]
@echo "Generating protobuf files..."
@protoc -I ./proto --go_out=./ \
--go-grpc_out=require_unimplemented_servers=false:./ \
--grpc-gateway_out . --grpc-gateway_opt logtostderr=true \
--grpc-gateway_opt generate_unbound_methods=true \
./proto/todos/*.proto ./proto/google/*.proto
@echo "Done"