-
-
Notifications
You must be signed in to change notification settings - Fork 519
/
docker-compose.yml
50 lines (50 loc) · 1.31 KB
/
docker-compose.yml
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
services:
build-worker:
build:
context: .
dockerfile: ./worker/Dockerfile
volumes:
- ./worker:/home/worker:ro
- ./worker-dist:/home/worker-dist
stdin_open: true
tty: true
serve-webpack-example:
build:
context: .
dockerfile: ./example/webpack/Dockerfile
stdin_open: true
tty: true
serve-express-example:
build:
context: .
dockerfile: ./example/express-server/Dockerfile
stdin_open: true
tty: true
test:
depends_on:
- serve-webpack-example
- serve-express-example
build:
context: .
dockerfile: ./tests/Dockerfile
volumes:
- ./demo-dist:/app/demo-dist:ro
- ./playwright.config.ts:/app/playwright.config.ts:ro
- ./tests:/app/tests
- ./test-results:/app/test-results
- ./playwright-report:/app/playwright-report
command: npx playwright test
update-snapshots:
depends_on:
- serve-webpack-example
- serve-express-example
build:
context: .
dockerfile: ./tests/Dockerfile
volumes:
- ./demo-dist:/app/demo-dist:ro
- ./playwright.config.ts:/app/playwright.config.ts:ro
- ./tests:/app/tests
- ./test-results:/app/test-results
- ./playwright-report:/app/playwright-report
command: npx playwright test --update-snapshots