forked from jeremylongshore/claude-code-plugins-plus-skills
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.test.yml
More file actions
84 lines (78 loc) · 2.24 KB
/
docker-compose.test.yml
File metadata and controls
84 lines (78 loc) · 2.24 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
79
80
81
82
83
84
version: '3.9'
# Docker Compose configuration for testing suite
# Provides isolated test environments for different scenarios
services:
# Primary test environment - full build and validation
test-full:
build:
context: .
dockerfile: Dockerfile.test
target: test
image: claude-plugins-test:latest
container_name: claude-plugins-test-full
environment:
NODE_ENV: test
CI: "true"
volumes:
- ./test-results:/app/test-results
command: >
bash -c "
echo 'Running full test suite...' &&
mkdir -p /app/test-results &&
pnpm test 2>&1 | tee /app/test-results/test-output.log &&
pnpm lint 2>&1 | tee /app/test-results/lint-output.log &&
pnpm typecheck 2>&1 | tee /app/test-results/typecheck-output.log
"
# Production test - minimal footprint
test-production:
build:
context: .
dockerfile: Dockerfile.test
target: production-test
image: claude-plugins-test-prod:latest
container_name: claude-plugins-test-prod
environment:
NODE_ENV: production
volumes:
- ./test-results:/app/test-results
healthcheck:
test: ["CMD", "pnpm", "--version"]
interval: 30s
timeout: 10s
retries: 3
start_period: 5s
command: >
bash -c "
echo 'Production environment test' &&
echo 'Node version:' && node --version &&
echo 'Pnpm version:' && pnpm --version &&
echo 'Disk usage:' && du -sh /app &&
echo 'Environment OK'
"
# Validation-only test
test-validation:
build:
context: .
dockerfile: Dockerfile.test
target: builder
image: claude-plugins-validate:latest
container_name: claude-plugins-test-validate
environment:
NODE_ENV: test
volumes:
- ./test-results:/app/test-results
- ./scripts:/app/scripts
- ./.claude-plugin:/app/.claude-plugin
- ./plugins:/app/plugins
command: >
bash -c "
echo 'Running validation suite...' &&
mkdir -p /app/test-results &&
bash /app/scripts/validate-all-plugins.sh 2>&1 | tee /app/test-results/validation-output.log
"
volumes:
test-results:
driver: local
networks:
default:
name: claude-plugins-test-network