forked from GitHubMirrors/silverbullet-icalendar
37 lines
847 B
YAML
37 lines
847 B
YAML
services:
|
|
silverbullet-test:
|
|
image: zefhemel/silverbullet:2.4.0
|
|
ports:
|
|
- "3001:3000"
|
|
volumes:
|
|
- ./test_space_e2e:/space
|
|
environment:
|
|
- SB_LOG_PUSH=true
|
|
- SB_DEBUG=true
|
|
- SB_SPACE_LUA_TRUSTED=true
|
|
|
|
mock-ics-server:
|
|
image: nginx:alpine
|
|
ports:
|
|
- "8081:80"
|
|
volumes:
|
|
- ./test_data:/usr/share/nginx/html:ro
|
|
- ./test_data/nginx.conf:/etc/nginx/nginx.conf:ro
|
|
|
|
playwright:
|
|
image: mcr.microsoft.com/playwright:v1.58.2-jammy
|
|
network_mode: "service:silverbullet-test"
|
|
volumes:
|
|
- .:/work
|
|
- /work/node_modules
|
|
- /tmp/.X11-unix:/tmp/.X11-unix
|
|
working_dir: /work
|
|
environment:
|
|
- CI=true
|
|
- DISPLAY=${DISPLAY:-:0}
|
|
- SB_URL=http://localhost:3000
|
|
command: sh -c "npm install && npx playwright test"
|
|
|
|
volumes:
|
|
sb-test-space:
|