-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (29 loc) · 941 Bytes
/
Makefile
File metadata and controls
36 lines (29 loc) · 941 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
33
34
35
36
OPENAPI_GENERATOR_CLI_VERSION=7.12.0
# Using args:
# make my-command ARGS="--some-flag value"
.PHONY: install
install:
@npm install @openapitools/openapi-generator-cli -g
@openapi-generator-cli version-manager set ${OPENAPI_GENERATOR_CLI_VERSION}
@go install entgo.io/ent/cmd/ent@latest
@go install ariga.io/atlas/cmd/atlas@latest
.PHONY: rest-api
rest-api:
@echo ">>> Generating REST API..."
@go generate ./pkg/api
.PHONY: ent-generate
ent-generate:
@echo ">>> Generating Ent schema implementation files..."
@go generate ./pkg/storage/postgres/ent
.PHONY: test
test:
@echo ">>> Running tests..."
@go test ./pkg/...
.PHONY: reprocess
reprocess:
@echo ">>> Running reprocessing tool..."
@go run ./cmd/reprocess --env-file=./cmd/reprocess/.env $(ARGS)
.PHONY: reprocess-dry-run
reprocess-dry-run:
@echo ">>> Running reprocessing tool (dry run)..."
@go run ./cmd/reprocess --dry-run --env-file=./cmd/reprocess/.env $(ARGS)