Skip to content
This repository was archived by the owner on Oct 30, 2026. It is now read-only.

Testing and CI

Syed Ahmer Shah edited this page Oct 30, 2026 · 1 revision

Testing and CI/CD

flowchart LR
    A[Push / PR] --> L[PHP 8.1/8.2/8.3 lint]
    A --> S[Schema import]
    A --> G[Security gate]
    L & S --> D[docker compose up] --> SM[Smoke: 15 journeys] --> P[Security probe] --> SEO[SEO audit] --> LD[Load: 15 users] --> ST[Stress: 60 users] --> PW[Playwright desktop + mobile]
    T[Tag v*] --> IMG[Docker image → GHCR]
Loading
Test (2026-10-30) Result
Load: 15 concurrent users, 15 different journeys, 60 s 3,243 requests · 54 req/s · 0% errors · p50 220 ms · p95 637 ms
Stress: 60 users, 45 s 2,452 requests · 0% errors · p95 2.9 s (graceful saturation, no 5xx)
Playwright (Chrome desktop + Pixel 7) 33 passed · 1 skipped
Security probe 33 / 33
SEO audit 13 / 13
docker compose up -d --build --wait
php tests/load/load_test.php http://localhost:8080 15 60
cd tests/e2e && npm install && npx playwright install chromium && npx playwright test

main is protected by a ruleset: pull request required, status checks must pass, linear history, no force pushes.

Clone this wiki locally