Files
openhuman/e2e/docker-compose.yml
T
Steven EnamakelandGitHub bfe4918a85 Enhance E2E testing environment by updating Dockerfile and workflows (#376)
- Updated the Dockerfile to include additional system dependencies for E2E testing, such as xvfb, dbus, and webkit2gtk-driver, along with the installation of tauri-driver.
- Modified the docker-compose.yml to use the shared CI image for E2E tests, streamlining the build process and ensuring consistency across environments.
- Deprecated the previous E2E Dockerfile, consolidating the setup into the CI image for improved maintainability and reduced redundancy.
- Adjusted the GitHub Actions workflow to reflect changes in the Dockerfile and ensure proper context for building the image.
2026-04-06 14:26:30 -07:00

39 lines
1.2 KiB
YAML

##
# Run Linux E2E tests locally from macOS via Docker.
#
# Usage:
# # Build + run all E2E flows
# docker compose -f e2e/docker-compose.yml run --rm e2e
#
# # Run a specific spec
# docker compose -f e2e/docker-compose.yml run --rm e2e \
# bash app/scripts/e2e-run-spec.sh test/e2e/specs/smoke.spec.ts smoke
#
# # Build the E2E app first (if not already built)
# docker compose -f e2e/docker-compose.yml run --rm e2e \
# yarn workspace openhuman-app test:e2e:build
#
# Notes:
# - Uses the same CI image from GHCR (built by .github/workflows/docker-ci-image.yml)
# - The repo is bind-mounted at /app so builds persist between runs
# - Rust target/ and node_modules/ are cached via named volumes
# - Xvfb provides a virtual display for webkit2gtk rendering
#
services:
e2e:
image: ghcr.io/tinyhumansai/openhuman_ci:latest
entrypoint: ["/docker-entrypoint.sh"]
command: ["yarn", "workspace", "openhuman-app", "test:e2e:all"]
working_dir: /app
volumes:
- ..:/app
- e2e-cargo-registry:/usr/local/cargo/registry
- e2e-cargo-git:/usr/local/cargo/git
environment:
- DISPLAY=:99
- CI=true
volumes:
e2e-cargo-registry:
e2e-cargo-git: