mirror of
https://github.com/willchen96/mike.git
synced 2026-07-26 23:51:08 +02:00
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:
parent
82fd540ee5
commit
82cbe4d7a2
1 changed files with 4 additions and 1 deletions
5
.github/workflows/e2e.yml
vendored
5
.github/workflows/e2e.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue