-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.tools.yaml
More file actions
91 lines (84 loc) · 2.14 KB
/
docker-compose.tools.yaml
File metadata and controls
91 lines (84 loc) · 2.14 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
85
86
87
88
89
90
91
services:
install-node-deps:
image: node-tools
volumes:
- .:/app
- node_modules:/app/node_modules
- pnpm-store:/root/.pnpm-store
entrypoint: [ "sh", "-c" ]
command: ["npm install -g pnpm && pnpm install"]
working_dir: /app
tsc:
image: node-tools
volumes:
- .:/app
- node_modules:/app/node_modules
- pnpm-store:/root/.pnpm-store
working_dir: /app
entrypoint: [ "sh", "-c" ]
command: ["pnpm typecheck"]
biome-check:
image: node-tools
volumes:
- .:/app
- node_modules:/app/node_modules
- pnpm-store:/root/.pnpm-store
working_dir: /app
entrypoint: [ "sh", "-c" ]
command: ["pnpm lint"]
biome-check-fix:
image: node-tools
volumes:
- .:/app
- node_modules:/app/node_modules
- pnpm-store:/root/.pnpm-store
working_dir: /app
entrypoint: [ "sh", "-c" ]
command: ["pnpm lint --write"]
build:
image: node-tools
volumes:
- .:/app
- node_modules:/app/node_modules
- pnpm-store:/root/.pnpm-store
- build:/app/build
working_dir: /app
entrypoint: [ "sh", "-c" ]
command: ["pnpm build"]
test:
image: node-tools
volumes:
- .:/app
- node_modules:/app/node_modules
- pnpm-store:/root/.pnpm-store
working_dir: /app
environment:
- REDIS_HOST=redis
- DB_HOST=postgres-test
- DB_USER=test
- DB_PASSWORD=test
- DB_DATABASE=test
- DB_PORT=7357
entrypoint: [ "sh", "-c" ]
command: ["
pnpm install
&& npx playwright install chromium
&& npx playwright install-deps
&& node ace test browser --force-exit
&& node ace test unit --force-exit
&& HOST=0.0.0.0 node ace test functional --force-exit
"] # HOST=0.0.0.0 is required for functional tests to avoid ECONNREFUSED error when running tests in docker
postgres-test:
image: postgres:latest
environment:
POSTGRES_USER: test
POSTGRES_PASSWORD: test
POSTGRES_DB: test
POSTGRES_PORT: 7357
ports:
- "7357:7357"
command: ["postgres", "-p", "7357"]
volumes:
node_modules:
pnpm-store:
build: