chore(deps): bump codecov/codecov-action from 6.0.1 to 7.0.0 #3225
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: E2E Test | |
| on: | |
| push: | |
| branches: | |
| - 'dev' | |
| - 'dev-*' | |
| - 'dev/**' | |
| - 'feature-*' | |
| - 'feature/**' | |
| - 'fix-*' | |
| - 'fix/**' | |
| - 'hotfix-*' | |
| - 'hotfix/**' | |
| - 'refactor-*' | |
| - 'refactor/**' | |
| - 'test-*' | |
| - 'test/**' | |
| paths: | |
| - '.github/workflows/*' | |
| - 'packages/**' | |
| - 'scripts/**' | |
| - 'tests/**' | |
| - 'build/**' | |
| - 'babel.config.json' | |
| - 'package.json' | |
| - 'playwright.config.ts' | |
| pull_request: | |
| branches: | |
| - master | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test-e2e: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| # 安装 pnpm | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v5 | |
| with: | |
| version: 9.15.0 | |
| # 设置 Node.js 版本并缓存 pnpm store | |
| - name: Use Node.js 22.13.0 | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: '22.13.0' | |
| cache: pnpm | |
| # 安装项目依赖 | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| # 先构建 core editor + react wrapper,避免把冷构建时间算进 Playwright webServer 超时 | |
| - name: Build editor packages | |
| run: pnpm turbo build --filter=@wangeditor-next/editor --filter=@wangeditor-next/editor-for-react | |
| # 安装 Playwright 浏览器和系统依赖 | |
| - name: Install Playwright browsers | |
| run: pnpm exec playwright install --with-deps chromium | |
| # 运行 Playwright 测试 | |
| - name: Run E2E tests | |
| env: | |
| PLAYWRIGHT_SKIP_BUILD: '1' | |
| run: pnpm e2e |