-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
57 lines (40 loc) · 1001 Bytes
/
Makefile
File metadata and controls
57 lines (40 loc) · 1001 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
go_files := $(shell go list ./...)
.PHONY: all deps fmt lint vet test cover run-api run-worker migrate docker-up docker-down ci-cover
.PHONY: clear-test-deposit e2e e2e-quick
all: test
deps:
go mod download
go mod verify
fmt:
gofmt -s -w .
lint: fmt
go vet ./...
golangci-lint run || true
vet:
go vet ./...
migrate:
migrate -path migrations -database $$DATABASE_URL up
cover:
go test -coverprofile=coverage.out -covermode=atomic ./...
go tool cover -func=coverage.out
ci-cover:
bash scripts/check_package_coverage.sh
run-api:
go run ./cmd/api
run-worker:
go run ./cmd/messaging-worker
docker-up:
docker compose up --build
docker-down:
docker compose down -v
test:
go test ./...
# Clears deposit state for a test phone (dry-run unless YES=1).
clear-test-deposit:
./scripts/clear-test-deposit.sh $(TEST_PHONE)
# Run full E2E test (requires API running)
e2e:
./scripts/run-e2e-test.sh
# Run E2E test with shorter wait times
e2e-quick:
./scripts/run-e2e-test.sh --quick