-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
62 lines (50 loc) · 2 KB
/
Copy pathMakefile
File metadata and controls
62 lines (50 loc) · 2 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
.PHONY: build test test-setup test-server test-deploy test-auth clean help
# Build all actions
build:
pnpm run build
# Run TypeScript type checking
typecheck:
pnpm run typecheck
# Test all actions locally
test: test-setup test-server test-deploy test-auth
# Test setup-ftl action
test-setup:
@echo "🧪 Testing setup-ftl action..."
env INPUT_VERSION=latest INPUT_USE-CACHE=false RUNNER_TEMP=/tmp RUNNER_TOOL_CACHE=/tmp/tool-cache node packages/setup-ftl/dist/index.js
# Test ftl-server-up action
test-server:
@echo "🧪 Testing ftl-server-up action..."
env INPUT_PORT=8080 INPUT_TIMEOUT=5 node packages/ftl-server-up/dist/index.js
# Test ftl-eng-deploy action
test-deploy:
@echo "🧪 Testing ftl-eng-deploy action..."
env INPUT_PROJECT=test-project INPUT_ENVIRONMENT=staging INPUT_CLIENT-ID=test-id INPUT_CLIENT-SECRET=test-secret INPUT_WAIT-FOR-COMPLETION=true node packages/ftl-eng-deploy/dist/index.js
# Test authenticate-ftl action
test-auth:
@echo "🧪 Testing authenticate-ftl action..."
env INPUT_METHOD=auto INPUT_CLIENT-ID=test-id INPUT_CLIENT-SECRET=test-secret INPUT_SET-OUTPUT=false node packages/authenticate-ftl/dist/index.js
# Build and test everything
build-and-test: build test
# Clean build artifacts
clean:
rm -rf packages/*/dist
rm -rf packages/shared/dist
# Install dependencies
install:
pnpm install
# Set up project from scratch
setup: install build
# Help target
help:
@echo "Available targets:"
@echo " build - Build all TypeScript actions"
@echo " typecheck - Run TypeScript type checking"
@echo " test - Test all actions locally"
@echo " test-setup - Test setup-ftl action only"
@echo " test-server - Test ftl-server-up action only"
@echo " test-deploy - Test ftl-eng-deploy action only"
@echo " test-auth - Test authenticate-ftl action only"
@echo " clean - Remove build artifacts"
@echo " install - Install dependencies"
@echo " setup - Full setup (install + build)"
@echo " help - Show this help message"