forked from ThreeDotsLabs/wild-workouts-go-ddd-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
48 lines (39 loc) · 1001 Bytes
/
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
48
include .env
export
.PHONY: openapi
openapi: openapi_http openapi_js
.PHONY: openapi_http
openapi_http:
@./scripts/openapi-http.sh trainer internal/trainer/ports ports
@./scripts/openapi-http.sh trainings internal/trainings/ports ports
@./scripts/openapi-http.sh users internal/users main
.PHONY: openapi_js
openapi_js:
@./scripts/openapi-js.sh trainer
@./scripts/openapi-js.sh trainings
@./scripts/openapi-js.sh users
.PHONY: proto
proto:
@./scripts/proto.sh trainer
@./scripts/proto.sh users
.PHONY: lint
lint:
@go-cleanarch
@./scripts/lint.sh common
@./scripts/lint.sh trainer
@./scripts/lint.sh trainings
@./scripts/lint.sh users
.PHONY: fmt
fmt:
goimports -l -w internal/
.PHONY: mycli
mycli:
mycli -u ${MYSQL_USER} -p ${MYSQL_PASSWORD} ${MYSQL_DATABASE}
.PHONY: c4
c4:
cd tools/c4 && go mod tidy && sh generate.sh
test:
@./scripts/test.sh common .e2e.env
@./scripts/test.sh trainer .test.env
@./scripts/test.sh trainings .test.env
@./scripts/test.sh users .test.env