-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (24 loc) · 848 Bytes
/
Copy pathMakefile
File metadata and controls
35 lines (24 loc) · 848 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
.PHONY: dev build test test-e2e-fast test-e2e-full test-load lint migrate seed docker-up docker-down
dev:
go run cmd/server/main.go
build:
go build -o bin/tokenrouter cmd/server/main.go
test:
go test ./... -race
test-e2e-fast:
go test -tags=e2e ./tests/e2e/...
test-e2e-full:
go test -tags=e2e_full ./tests/e2e/...
test-load:
go test -tags=load ./tests/load -run TestDistinctUserPressure -count=1 -v
lint:
go vet ./...
migrate:
@test -n "$$DATABASE_URL" || (echo "DATABASE_URL is required"; exit 1)
go run github.com/golang-migrate/migrate/v4/cmd/migrate@v4.19.1 -path migrations -database "$$DATABASE_URL" up
seed:
@echo "seed: pricing data is applied by migrations/006_seed_pricing.up.sql"
docker-up:
docker compose -f deployments/docker-compose.yml up -d
docker-down:
docker compose -f deployments/docker-compose.yml down