ci: update Playwright workflow to improve test execution and reporting
This commit is contained in:
parent
df7e0a5737
commit
2f99b3987e
1 changed files with 11 additions and 5 deletions
16
.github/workflows/playwright.yml
vendored
16
.github/workflows/playwright.yml
vendored
|
|
@ -7,8 +7,12 @@ on:
|
|||
|
||||
jobs:
|
||||
e2e-testing:
|
||||
timeout-minutes: 60
|
||||
timeout-minutes: 30
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
project: [chromium, firefox, webkit]
|
||||
env:
|
||||
USE_EMBEDDED_WEED_MINI: true
|
||||
ENABLE_TEST_NAMESPACE: true
|
||||
|
|
@ -57,10 +61,12 @@ jobs:
|
|||
env:
|
||||
API_BASE: https://api.deepinfra.com/v1/openai
|
||||
API_KEY: ${{ secrets.DEEPINFRA_API_KEY }}
|
||||
run: pnpm exec playwright test --reporter=list,github,html
|
||||
run: pnpm exec playwright test --project=${{ matrix.project }} --max-failures=5 --reporter=list,github,html
|
||||
- uses: actions/upload-artifact@v7
|
||||
if: ${{ !cancelled() }}
|
||||
if: ${{ always() }}
|
||||
with:
|
||||
name: playwright-report
|
||||
path: playwright-report/
|
||||
name: playwright-report-${{ matrix.project }}
|
||||
path: |
|
||||
playwright-report/
|
||||
tests/results/
|
||||
retention-days: 30
|
||||
|
|
|
|||
Loading…
Reference in a new issue