ci: updated workflow

This commit is contained in:
Marvin Zhang
2024-10-23 11:00:49 +08:00
parent 2d7326748c
commit ab9afe2acd
2 changed files with 12 additions and 9 deletions

View File

@@ -234,18 +234,22 @@ jobs:
with:
node-version: '20'
- name: Install Playwright and dependencies
- name: Install pnpm
run: npm install -g pnpm@9
- name: Install dependencies
working-directory: tests/e2e
run: pnpm install
- name: Install Playwright browser
id: install_playwright
run: |
npm init -y
npm install @playwright/test
npx playwright install --with-deps
working-directory: tests/e2e
run: pnpm playwright install --with-deps
- name: Run Playwright tests
id: run_playwright
run: |
cd tests/e2e
npx playwright test
working-directory: tests/e2e
run: pnpm playwright test
- name: Upload Playwright report
id: upload_playwright_report