-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
78 lines (55 loc) · 1.94 KB
/
Makefile
File metadata and controls
78 lines (55 loc) · 1.94 KB
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
.PHONY: build test test-integration lint clean \
portal-install portal-dev portal-build portal-lint portal-playwright-install \
orchestrator sync-templates sync-jobs kind-setup orchestrator-dev
BINARY := bin/integrations
build:
go build -o $(BINARY) ./cmd/integrations
orchestrator:
go build -o bin/orchestrator ./cmd/orchestrator
sync-templates:
go build -o bin/sync-templates ./cmd/sync-templates
doppler run -- ./bin/sync-templates agents
sync-jobs: sync-templates
test:
go test -race -coverprofile=coverage.out ./internal/...
go tool cover -func=coverage.out
test-integration:
doppler run -- go test -race -tags=integration -v ./internal/...
lint:
go vet ./...
clean:
rm -rf bin/ coverage.out docker/agent-base/bin/ docker/export-creds/bin/
# Orchestrator dev targets
kind-setup:
bash scripts/kind-setup.sh
orchestrator-dev:
doppler run -- go run ./cmd/orchestrator
# Docker images
docker-agent-base:
GOOS=linux GOARCH=arm64 go build -o docker/agent-base/bin/integrations ./cmd/integrations
docker build -t ghcr.io/emdash-projects/agent-base:dev -f docker/agent-base/Dockerfile .
docker-export-creds:
GOOS=linux GOARCH=arm64 go build -o docker/export-creds/bin/export-creds ./cmd/export-creds
docker build -t ghcr.io/emdash-projects/export-creds:latest -f docker/export-creds/Dockerfile .
# Portal targets
portal-install:
cd portal && npm install
portal-dev:
cd portal && doppler run -p agents -c dev -- npm run dev
portal-build:
cd portal && doppler run -p agents -c dev -- npm run build
portal-lint:
cd portal && npm run lint
portal-playwright-install:
cd portal && npx playwright install chromium
# Desktop app
.PHONY: desktop-deps desktop-build desktop-dev cli-install
cli-install: build-cli
mkdir -p ~/.ade/bin
cp bin/integrations ~/.ade/bin/integrations
desktop-deps:
cd desktop && pnpm install
desktop-build: desktop-deps
cd desktop && pnpm run build
desktop-dev: cli-install desktop-deps
cd desktop && pnpm run dev