-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.tools.yaml
85 lines (78 loc) · 2.05 KB
/
docker-compose.tools.yaml
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
services:
install-node-deps:
image: node:23.0
volumes:
- .:/app
- node_modules:/app/node_modules
entrypoint: [ "sh", "-c" ]
command: ["corepack enable && pnpm install"]
working_dir: /app
tsc:
image: node:23.0
volumes:
- .:/app
- node_modules:/app/node_modules
working_dir: /app
entrypoint: [ "sh", "-c" ]
command: ["corepack enable && FORCE_COLOR=1 pnpm typecheck"]
biome-check:
image: node:23.0
volumes:
- .:/app
- node_modules:/app/node_modules
working_dir: /app
entrypoint: [ "sh", "-c" ]
command: ["corepack enable && FORCE_COLOR=1 pnpm lint"]
biome-check-fix:
image: node:23.0
volumes:
- .:/app
- node_modules:/app/node_modules
working_dir: /app
entrypoint: [ "sh", "-c" ]
command: ["corepack enable && FORCE_COLOR=1 pnpm lint --write"]
build:
image: node:23.0
volumes:
- .:/app
- node_modules:/app/node_modules
- build:/app/build
working_dir: /app
entrypoint: [ "sh", "-c" ]
command: ["corepack enable && FORCE_COLOR=1 pnpm build"]
test:
image: node:23.0
volumes:
- .:/app
- node_modules:/app/node_modules
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: ["
corepack enable
&& 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:
build: