ci(e2e): upload the Playwright report even on timeout/cancel

Switch the artifact step from !cancelled() to always() so a run that hits the
30-minute job timeout (the failure mode when many specs retry) still uploads
the HTML report and traces instead of skipping the upload — that partial report
is exactly what's needed to diagnose the failing specs.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
QA Runner 2026-07-17 14:13:30 -07:00
parent 82fd540ee5
commit 82cbe4d7a2

View file

@ -168,11 +168,14 @@ jobs:
- name: Run Playwright
run: npx playwright test
# always() (not !cancelled()) so the report still uploads when the job is
# cancelled by the timeout — that's exactly when you most need the traces.
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
if: always()
with:
name: playwright-report
path: |
playwright-report/
test-results/
retention-days: 14
if-no-files-found: ignore