Files
vue-ts-example/.github/workflows/playwright.yml
严浩 34d1ebc3eb
Some checks are pending
CI / cache-and-install (push) Waiting to run
Playwright Tests
2024-09-26 12:12:06 +08:00

28 lines
794 B
YAML

name: Playwright Tests
on:
workflow_run:
workflows: ['CI'] # 这里的名称应该是你的 `ci.yaml` 中定义的工作流名称
types:
- completed
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Install dependencies
run: npm install -g pnpm && pnpm install
- name: Install Playwright Browsers
run: pnpm exec playwright install --with-deps
- name: Run Playwright tests
run: pnpm exec playwright test
# - uses: actions/upload-artifact@v4
# if: ${{ !cancelled() }}
# with:
# name: playwright-report
# path: playwright-report/
# retention-days: 30