chore(ci): capture server stderr + dump on failure
Some checks failed
Test / vitest (push) Successful in 11m7s
Test / playwright (push) Failing after 10m1s
Test / visual (push) Failing after 9m51s
Test / Notify on failure (push) Successful in 2s

Backgrounding 'node .output/server/index.mjs &' swallowed startup
crashes — failures presented as a useless 30s 'Wait for server'
timeout. Pipe stderr to a log file and cat it on failure so the
next crash is one click away.
This commit is contained in:
Jennie Robinson Faber 2026-05-01 00:23:14 +01:00
parent 9ddb45c4d8
commit d1b5107478

View file

@ -44,11 +44,14 @@ jobs:
- run: npx playwright install --with-deps chromium
- run: npm run build
- name: Start server
run: node .output/server/index.mjs &
run: node .output/server/index.mjs > /tmp/server.log 2>&1 &
env:
PORT: 3000
- name: Wait for server
run: timeout 30 sh -c 'until curl -sf http://localhost:3000; do sleep 1; done'
- name: Server log on failure
if: failure()
run: cat /tmp/server.log || true
- run: npx playwright test --ignore-snapshots
- uses: actions/upload-artifact@v4
if: failure()
@ -98,11 +101,14 @@ jobs:
- run: npx playwright install --with-deps chromium
- run: npm run build
- name: Start server
run: node .output/server/index.mjs &
run: node .output/server/index.mjs > /tmp/server.log 2>&1 &
env:
PORT: 3000
- name: Wait for server
run: timeout 30 sh -c 'until curl -sf http://localhost:3000; do sleep 1; done'
- name: Server log on failure
if: failure()
run: cat /tmp/server.log || true
- run: npx playwright test e2e/visual/
- uses: actions/upload-artifact@v4
if: failure()