-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
56 lines (39 loc) · 774 Bytes
/
Makefile
File metadata and controls
56 lines (39 loc) · 774 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
.PHONY: build build-api build-worker test clean run docker-up docker-down docker-logs docker-build test-api verify-scout lint format build-lint tidy
build: build-api build-worker
build-api:
go build -o api ./cmd/api
build-worker:
go build -o worker ./cmd/worker
test:
go test ./...
clean:
go clean
rm -f api worker
run: build-api
./api
docker-build:
docker compose build
docker-up:
docker compose up -d
docker-down:
docker compose down
docker-logs:
docker compose logs -f
test-api:
./scripts/test-api.sh
verify-scout:
./scripts/verify-scout.sh
lint:
go vet ./...
gofmt -l .
format:
gofmt -w .
tidy:
go mod tidy
build-lint: build
@echo "Running build and lint..."
go vet ./...
gofmt -w .
go mod tidy
go test ./...
.DEFAULT_GOAL := build