mirror of
https://github.com/dream-num/univer.git
synced 2026-09-16 17:43:30 +08:00
44 lines
1.2 KiB
YAML
44 lines
1.2 KiB
YAML
name: 🎭 Playwright Tests
|
|
|
|
on:
|
|
push:
|
|
branches: [main, dev]
|
|
pull_request:
|
|
branches: [main, dev]
|
|
|
|
jobs:
|
|
test:
|
|
timeout-minutes: 60
|
|
runs-on: ubuntu-latest
|
|
|
|
env:
|
|
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
|
|
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
|
|
ref: ${{ github.head_ref }}
|
|
|
|
- name: Setup Node.js
|
|
uses: ./.github/actions/setup-node
|
|
|
|
- name: Install Playwright Browsers
|
|
run: pnpm dlx playwright install --with-deps
|
|
|
|
# build the example locally and run from the built files
|
|
- name: Build E2E Client
|
|
run: pnpm build:e2e
|
|
|
|
- name: Run Playwright Tests
|
|
run: pnpm dlx playwright test
|
|
|
|
- uses: actions/upload-artifact@v3
|
|
if: always()
|
|
with:
|
|
name: playwright-report
|
|
path: playwright-report/
|
|
retention-days: 30
|