Some checks failed
CI/CD / detect-changes (pull_request) Successful in 5s
CI/CD / test-frontend (pull_request) Successful in 6s
CI/CD / test-go-pg (pull_request) Successful in 2m48s
CI/CD / test-sqlite (pull_request) Successful in 2m50s
CI/CD / test-runners (pull_request) Failing after 16s
CI/CD / build-and-deploy (pull_request) Has been skipped
In Gitea runner pods, the repo checkout lives in a Docker volume, not a host path. The `.:/work` mount in docker-compose.ci.yml resolved to the Docker daemon's CWD (empty), causing "No such file or directory". Resolve the actual Docker volume backing the CI workspace at runtime and pass it via CI_WORKSPACE_VOLUME env var. Falls back to `.` for local (non-DinD) usage. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
45 lines
1.3 KiB
YAML
45 lines
1.3 KiB
YAML
# docker-compose.ci.yml — CI test override
|
|
#
|
|
# Extends base docker-compose.yml. Adds a healthcheck to armature and a
|
|
# Playwright test-runner service. All containers share the default compose
|
|
# bridge network, so the test-runner reaches armature via Docker DNS
|
|
# (http://armature:80).
|
|
#
|
|
# Usage:
|
|
# docker compose -f docker-compose.yml -f docker-compose.ci.yml up --build \
|
|
# --abort-on-container-exit --exit-code-from test-runner
|
|
#
|
|
# The workflow exits with the test-runner's exit code (0 = pass, 1 = fail).
|
|
#
|
|
# NOTE: Do NOT use network_mode: host — the workflow container and compose
|
|
# containers are in separate network namespaces inside DinD. Use the default
|
|
# bridge network and let services talk via Docker DNS instead.
|
|
|
|
services:
|
|
armature:
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-sf", "http://localhost:80/api/v1/health"]
|
|
interval: 2s
|
|
timeout: 3s
|
|
retries: 30
|
|
start_period: 5s
|
|
|
|
test-runner:
|
|
image: mcr.microsoft.com/playwright:v1.52.0-noble
|
|
depends_on:
|
|
armature:
|
|
condition: service_healthy
|
|
working_dir: /work
|
|
volumes:
|
|
- ${CI_WORKSPACE_VOLUME:-.}:/work
|
|
environment:
|
|
SERVER_URL: http://armature:80
|
|
ADMIN_USER: admin
|
|
ADMIN_PASS: admin
|
|
command:
|
|
- bash
|
|
- -c
|
|
- |
|
|
npm install --no-save playwright 2>/dev/null
|
|
./ci/run-surface-tests.sh
|