ci: consolidate validation and split lightweight probes #5
@@ -53,24 +53,25 @@ jobs:
|
||||
run: |
|
||||
cp .env.example .env
|
||||
docker compose -p mobilityops-e2e up --build -d db api web
|
||||
docker network connect mobilityops-e2e_mobilityops "$HOSTNAME"
|
||||
for _attempt in $(seq 1 60); do
|
||||
if curl -fsS http://localhost:1228/health/ready >/dev/null 2>&1; then break; fi
|
||||
if curl -fsS http://web/health/ready >/dev/null 2>&1; then break; fi
|
||||
sleep 2
|
||||
done
|
||||
curl -fsS http://localhost:1228/health/ready
|
||||
curl -fsS http://web/health/ready
|
||||
docker compose -p mobilityops-e2e exec -T api python -m app.cli seed --reset
|
||||
- name: Install acceptance browsers
|
||||
working-directory: frontend
|
||||
run: npx playwright install --with-deps chromium firefox
|
||||
run: npx playwright install --with-deps chromium
|
||||
- name: Run browser acceptance and live smoke suites
|
||||
working-directory: frontend
|
||||
env:
|
||||
MOBILITYOPS_PUBLIC_URL: http://localhost:1228
|
||||
MOBILITYOPS_PUBLIC_URL: http://web
|
||||
run: |
|
||||
npx playwright test
|
||||
npx playwright test --config=playwright.live.config.ts
|
||||
npx playwright test --config=playwright.live.config.ts --project=chromium
|
||||
- name: Run concurrent persisted-read smoke
|
||||
run: python scripts/run-readonly-load-smoke.py --base-url http://localhost:1228
|
||||
run: python scripts/run-readonly-load-smoke.py --base-url http://web
|
||||
- name: Upload Playwright report
|
||||
if: failure()
|
||||
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3; Gitea-compatible artifact protocol
|
||||
@@ -86,5 +87,6 @@ jobs:
|
||||
- name: Remove CI stacks
|
||||
if: always()
|
||||
run: |
|
||||
docker network disconnect mobilityops-e2e_mobilityops "$HOSTNAME" 2>/dev/null || true
|
||||
docker compose -p mobilityops-e2e down -v --remove-orphans
|
||||
docker compose -p mobilityops-ci -f compose.yaml -f compose.test.yaml down -v --remove-orphans
|
||||
|
||||
Reference in New Issue
Block a user