|
75 | 75 | name: playwright-report-dev |
76 | 76 | path: packages/static/playwright-report-dev/ |
77 | 77 | retention-days: 30 |
| 78 | + |
| 79 | + e2e-vite7: |
| 80 | + runs-on: ubuntu-latest |
| 81 | + needs: ci |
| 82 | + |
| 83 | + steps: |
| 84 | + - uses: actions/checkout@v6 |
| 85 | + |
| 86 | + - name: Setup pnpm |
| 87 | + uses: pnpm/action-setup@v4 |
| 88 | + |
| 89 | + - name: Setup Node.js |
| 90 | + uses: actions/setup-node@v6 |
| 91 | + with: |
| 92 | + node-version: "24" |
| 93 | + cache: "pnpm" |
| 94 | + |
| 95 | + - name: Swap catalog to Vite 7 |
| 96 | + run: | |
| 97 | + sed -i \ |
| 98 | + -e 's|^\( "@vitejs/plugin-react":\).*|\1 ^5.1.4|' \ |
| 99 | + -e 's|^\( vite:\).*|\1 ^7.3.1|' \ |
| 100 | + pnpm-workspace.yaml |
| 101 | + grep -q '"@vitejs/plugin-react": \^5\.1\.4' pnpm-workspace.yaml |
| 102 | + grep -q 'vite: \^7\.3\.1' pnpm-workspace.yaml |
| 103 | +
|
| 104 | + - name: Install dependencies |
| 105 | + run: pnpm install --no-frozen-lockfile |
| 106 | + |
| 107 | + - name: Build |
| 108 | + run: pnpm --filter @funstack/static build |
| 109 | + |
| 110 | + - name: Cache Playwright browsers |
| 111 | + id: playwright-cache |
| 112 | + uses: actions/cache@v5 |
| 113 | + with: |
| 114 | + path: ~/.cache/ms-playwright |
| 115 | + key: playwright-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }} |
| 116 | + |
| 117 | + - name: Install Playwright system dependencies |
| 118 | + if: steps.playwright-cache.outputs.cache-hit != 'true' |
| 119 | + run: pnpm --filter @funstack/static exec playwright install-deps chromium |
| 120 | + |
| 121 | + - name: Install Playwright browsers |
| 122 | + run: pnpm --filter @funstack/static exec playwright install chromium |
| 123 | + |
| 124 | + - name: Run e2e tests (build) |
| 125 | + run: pnpm run test:e2e |
| 126 | + |
| 127 | + - name: Run e2e tests (dev server) |
| 128 | + run: pnpm run test:e2e:dev |
| 129 | + |
| 130 | + - name: Upload Playwright report (build, Vite 7) |
| 131 | + uses: actions/upload-artifact@v7 |
| 132 | + if: ${{ !cancelled() }} |
| 133 | + with: |
| 134 | + name: playwright-report-build-vite7 |
| 135 | + path: packages/static/playwright-report/ |
| 136 | + retention-days: 30 |
| 137 | + |
| 138 | + - name: Upload Playwright report (dev server, Vite 7) |
| 139 | + uses: actions/upload-artifact@v7 |
| 140 | + if: ${{ !cancelled() }} |
| 141 | + with: |
| 142 | + name: playwright-report-dev-vite7 |
| 143 | + path: packages/static/playwright-report-dev/ |
| 144 | + retention-days: 30 |
0 commit comments