ci: harden P0 workflow checks (#1077)

This commit is contained in:
Zhicheng Han
2026-05-28 02:26:02 +02:00
committed by GitHub
parent 6a9cb2450a
commit 21bb8385f2
7 changed files with 11604 additions and 18 deletions
+16 -3
View File
@@ -1,6 +1,9 @@
name: Playwright
on:
push:
branches:
- main
pull_request:
branches:
- main
@@ -8,6 +11,10 @@ on:
permissions:
contents: read
concurrency:
group: playwright-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
e2e:
runs-on: ubuntu-latest
@@ -19,10 +26,14 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 23
node-version: 24
cache: npm
cache-dependency-path: package-lock.json
- name: Install dependencies
run: npm install
run: |
npm ci --ignore-scripts
npm rebuild node-pty
- name: Install Playwright browsers
run: npx playwright install --with-deps chromium
@@ -35,5 +46,7 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: playwright-report
path: playwright-report/
path: |
playwright-report/
test-results/
retention-days: 7