Merge pull request #580 from bcorfman/dependabot/npm_and_yarn/npm_and… #428
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: PhaserForge CI / E2E (Main) | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - master | |
| workflow_dispatch: | |
| env: | |
| FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true | |
| HOME: /tmp/phaserforge-home | |
| permissions: | |
| contents: read | |
| jobs: | |
| e2e-main-chromium: | |
| name: E2E Main Chromium (shard ${{ matrix.shard }}/${{ matrix.shards }}) | |
| runs-on: ubuntu-latest | |
| container: | |
| image: mcr.microsoft.com/playwright:v1.61.1-noble | |
| options: --ipc=host | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| shard: [1, 2, 3, 4] | |
| shards: [4] | |
| steps: | |
| - name: Prepare writable home | |
| run: mkdir -p "$HOME" | |
| - name: Checkout | |
| uses: actions/checkout@v7 | |
| - name: Setup Node | |
| uses: actions/setup-node@v7 | |
| with: | |
| node-version: 26 | |
| - name: Install | |
| run: npm ci | |
| - name: E2E Tests | |
| env: | |
| PW_PROJECTS: chromium | |
| run: node scripts/run-main-e2e-shard.cjs ${{ matrix.shard }} -- --fail-on-flaky-tests | |
| - name: Upload Playwright Artifacts | |
| if: always() | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: playwright-main-chromium-${{ matrix.shard }}-of-${{ matrix.shards }} | |
| path: | | |
| playwright-report | |
| test-results |