-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
47 lines (32 loc) · 1.03 KB
/
Makefile
File metadata and controls
47 lines (32 loc) · 1.03 KB
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
include .env
export
.PHONY: openapi test test-one component-test component-test-one integration-test integration-test-one unit-test unit-test-one
openapi:
oapi-codegen -generate types -o "ports/openapi_types.gen.go" -package "ports" "ports/openapi.yml"
oapi-codegen -generate chi-server -o "ports/openapi_api.gen.go" -package "ports" "ports/openapi.yml"
test:
go test ./...
test-one:
go test -count=1 -run $(TEST) ./...
component-test:
go test ./tests/...
component-test-one:
go test -count=1 -run $(TEST) ./tests/...
integration-test:
go test ./adapters/...
integration-test-one:
go test -count=1 -run $(TEST) ./adapters/...
unit-test:
go test ./domain/...
unit-test-one:
go test -count=1 -run $(TEST) ./domain/...
start:
go run cmd/start/main.go
demo:
go run cmd/demo/main.go
migration-status:
sql-migrate status -config=migrations/dbconfig.yml -env="development"
migration-new:
sql-migrate new -config=migrations/dbconfig.yml -env="development"
migration-up:
sql-migrate up -config=migrations/dbconfig.yml -env="development"