mirror of
https://github.com/ashim-hq/ashim
synced 2026-04-21 13:37:52 +00:00
Complete rebrand from Stirling-Image to ashim following the project move to https://github.com/ashim-hq/ashim. Changes across 117 files: - Package scope: @stirling-image/* → @ashim/* - GitHub URLs: stirling-image/stirling-image → ashim-hq/ashim - Docker Hub: stirlingimage/stirling-image → ashimhq/ashim - GitHub Pages: stirling-image.github.io → ashim-hq.github.io - All branding text: "Stirling Image" → "ashim" - Docker service/volumes/user: stirling → ashim - Database: stirling.db → ashim.db - localStorage keys: stirling-token → ashim-token - Environment variables: STIRLING_GPU → ASHIM_GPU - Python cache dirs: .cache/stirling-image → .cache/ashim - SVG filter IDs, test prefixes, and all other references
48 lines
1.7 KiB
YAML
48 lines
1.7 KiB
YAML
###############################################################################
|
|
# Test infrastructure - run with:
|
|
# docker compose -f docker/docker-compose.test.yml up --build --abort-on-container-exit
|
|
###############################################################################
|
|
services:
|
|
# ── Unit + Integration tests ─────────────────────────────────────────────
|
|
test-unit:
|
|
build:
|
|
context: ..
|
|
dockerfile: docker/Dockerfile.test
|
|
container_name: ashim-test-unit
|
|
command: ["pnpm", "test:ci"]
|
|
environment:
|
|
- NODE_ENV=test
|
|
- AUTH_ENABLED=true
|
|
- DEFAULT_USERNAME=admin
|
|
- DEFAULT_PASSWORD=admin
|
|
- DB_PATH=/tmp/test-ashim.db
|
|
- WORKSPACE_PATH=/tmp/test-workspace
|
|
- MAX_MEGAPIXELS=100
|
|
- RATE_LIMIT_PER_MIN=1000
|
|
tmpfs:
|
|
- /tmp/test-workspace
|
|
- /tmp
|
|
|
|
# ── E2E tests (Playwright against full app) ─────────────────────────────
|
|
test-e2e:
|
|
build:
|
|
context: ..
|
|
dockerfile: docker/Dockerfile.test
|
|
container_name: ashim-test-e2e
|
|
command: ["sh", "-c", "npx playwright install --with-deps chromium && pnpm test:e2e"]
|
|
environment:
|
|
- NODE_ENV=test
|
|
- AUTH_ENABLED=true
|
|
- DEFAULT_USERNAME=admin
|
|
- DEFAULT_PASSWORD=admin
|
|
- DB_PATH=/tmp/test-ashim.db
|
|
- WORKSPACE_PATH=/tmp/test-workspace
|
|
- MAX_MEGAPIXELS=100
|
|
- RATE_LIMIT_PER_MIN=1000
|
|
- CI=true
|
|
tmpfs:
|
|
- /tmp/test-workspace
|
|
- /tmp
|
|
depends_on:
|
|
test-unit:
|
|
condition: service_completed_successfully
|