Skip to content

Playwright sharding #20

Playwright sharding

Playwright sharding #20

Workflow file for this run

# name: Playwright Tests
# on:
# push:
# branches: [ main ]
# pull_request:
# branches: [ main ]
# jobs:
# playwright-tests:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout code
# uses: actions/checkout@v4
# - name: Setup Node.js
# uses: actions/setup-node@v4
# with:
# node-version: 18
# - name: Install dependencies
# run: npm ci
# - name: Install Playwright browsers
# run: npx playwright install --with-deps
# - name: Run Playwright tests
# run: npx playwright test
name: Playwright Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
playwright-tests:
runs-on: ubuntu-latest
strategy:
matrix:
shard: [1, 2, 3, 4]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 18
- name: Install dependencies
run: npm ci
- name: Install Playwright browsers
run: npx playwright install --with-deps
- name: Run Playwright tests (Shard ${{ matrix.shard }})
run: npx playwright test --shard=${{ matrix.shard }}/4