From 962a6d6ec4b467009b00b44980bcd74bf537d36f Mon Sep 17 00:00:00 2001 From: Corentin Thomasset Date: Sat, 10 Jun 2023 16:46:52 +0200 Subject: [PATCH] chore(ci): shard e2e tests --- .github/workflows/{playwright.yml => e2e-tests.yml} | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) rename .github/workflows/{playwright.yml => e2e-tests.yml} (80%) diff --git a/.github/workflows/playwright.yml b/.github/workflows/e2e-tests.yml similarity index 80% rename from .github/workflows/playwright.yml rename to .github/workflows/e2e-tests.yml index 13d09495..ba505673 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/e2e-tests.yml @@ -8,6 +8,9 @@ jobs: test: timeout-minutes: 60 runs-on: ubuntu-latest + strategy: + matrix: + shard: [1/3, 2/3, 3/3] steps: - uses: actions/checkout@v3 - run: corepack enable @@ -20,4 +23,4 @@ jobs: - name: Install Playwright Browsers run: pnpm exec playwright install --with-deps - name: Run Playwright tests - run: pnpm exec playwright test + run: pnpm run test:e2e --shard=${{ matrix.shard }}