-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (26 loc) · 853 Bytes
/
Makefile
File metadata and controls
38 lines (26 loc) · 853 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
37
38
.PHONY: all run migrate migrate-meta migrate-data test test-integration e2e e2e-generate docker-build docker-up docker-down
all: test
run:
go run ./cmd/server
migrate:
go run ./cmd/migrate -target meta
go run ./cmd/migrate -target data
migrate-meta:
go run ./cmd/migrate -target meta
migrate-data:
go run ./cmd/migrate -target data
test:
go test ./cmd/... ./internal/... -count=1
test-integration:
@test -n "$$TEST_META_DATABASE_URL" || (echo "Set TEST_META_DATABASE_URL (and optionally TEST_DATA_DATABASE_URL)" && exit 1)
go test ./internal/... -count=1 -v
e2e-generate:
cd e2e && node scripts/generate-api-tests.mjs
e2e:
cd e2e && npm install && npx playwright install chromium && npm test
docker-build:
docker build -t lowcode-database:latest .
docker-up:
docker compose up -d postgres redis
docker-down:
docker compose down