mirror of
https://github.com/mauricioabh/arbpulse.git
synced 2026-07-28 16:17:43 +00:00
fd4170963e
Capture REST/WS/SSE errors in Sentry, emit structured pino logs with correlation IDs, and trace the book-tick pipeline to Sentry via OpenTelemetry. Co-authored-by: Cursor <cursoragent@cursor.com>
46 lines
997 B
YAML
46 lines
997 B
YAML
name: E2E Smoke
|
|
|
|
on:
|
|
push:
|
|
branches: [main, dev]
|
|
pull_request:
|
|
branches: [main, dev]
|
|
|
|
jobs:
|
|
smoke:
|
|
name: Playwright dashboard + SSE
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
DEMO_MODE: "true"
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: "20"
|
|
cache: npm
|
|
cache-dependency-path: |
|
|
package-lock.json
|
|
web/package-lock.json
|
|
|
|
- run: npm ci
|
|
- run: npm --prefix web ci
|
|
- run: npm run build
|
|
|
|
- name: Start server
|
|
run: npm start &
|
|
|
|
- name: Wait for API
|
|
run: |
|
|
for i in $(seq 1 45); do
|
|
curl -sf http://localhost:8080/api/health > /dev/null && echo "Ready after ${i}s" && exit 0
|
|
sleep 1
|
|
done
|
|
echo "::error::Server did not become ready in 45s" && exit 1
|
|
|
|
- run: npx playwright install --with-deps chromium
|
|
|
|
- name: Run smoke tests
|
|
run: npm run test:e2e
|