mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
5ac07d4d9b
CI: - Add 17 starter services to showcase deploy workflow with Railway IDs - Add drift detection workflow (triggers on starters, packages, scripts, shared) - Remove shared_frontend copy step for starter builds Shell: - Update clone command to npx degit with clipboard fallback - Update starter content bundler for full component tree + .java support - Add clone_command to manifest schema and registry types Aimock: - Expand feature-parity.json from 18 to 37 fixture rules - Add docker-compose.packages.yml for CI aimock sidecar (strict mode) - Add run-e2e-with-aimock.sh convenience script
27 lines
872 B
YAML
27 lines
872 B
YAML
# Aimock sidecar for per-package e2e testing in CI.
|
|
#
|
|
# Boots aimock with the shared feature-parity fixture so per-package
|
|
# Playwright tests get deterministic LLM responses.
|
|
#
|
|
# Usage:
|
|
# docker compose -f docker-compose.packages.yml up -d aimock
|
|
# OPENAI_BASE_URL=http://localhost:4010/v1 OPENAI_API_KEY=test-key \
|
|
# cd ../packages/<slug> && pnpm dev &
|
|
# npx playwright test
|
|
#
|
|
# Or in CI, reference this as a service container alongside the test runner.
|
|
services:
|
|
aimock:
|
|
image: ghcr.io/copilotkit/aimock:latest
|
|
volumes:
|
|
- ../aimock/feature-parity.json:/fixtures/default.json:ro
|
|
command: ["--fixtures", "/fixtures", "--host", "0.0.0.0"]
|
|
ports:
|
|
- "4010:4010"
|
|
healthcheck:
|
|
test: ["CMD", "wget", "-q", "--spider", "http://localhost:4010/health"]
|
|
interval: 5s
|
|
timeout: 3s
|
|
retries: 10
|
|
start_period: 5s
|