fix: upload snapshot as artifacts when test failed, record hean snapshot in mem test (#4594)

This commit is contained in:
lumix
2025-02-08 14:29:02 +08:00
committed by GitHub
parent 022499229f
commit fb3d10f9df
5 changed files with 112 additions and 14 deletions
+10 -4
View File
@@ -26,7 +26,7 @@ jobs:
run: pnpm build:e2e
- name: Run Playwright Tests
run: pnpm exec playwright test --output=playwright-assets
run: pnpm exec playwright test
- name: 🚀 Deploy to Vercel
uses: amondnet/vercel-action@v25
@@ -49,7 +49,13 @@ jobs:
if: ${{ !cancelled() }}
with:
name: playwright-report
path: |
playwright-report/
test-results/
path: playwright-report/
retention-days: 30
- name: Upload HeapSnapshots
uses: actions/upload-artifact@v4
if: ${{ failure() }}
with:
name: snapshots
path: test-results/*.heapsnapshot
retention-days: 3