From 5f1f5f8bc655cdbfe2e5c57502aacd6cd5da1de7 Mon Sep 17 00:00:00 2001 From: Rob Stanford Date: Wed, 11 Dec 2024 11:21:59 +0000 Subject: [PATCH 1/2] feat: parallelise e2e via workers --- .github/workflows/run-tests.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 07f3eb069..f15a43db3 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -48,7 +48,6 @@ jobs: fail-fast: false matrix: version: ${{ fromJson(needs.setup.outputs.matrix) }} - shard: [1, 2, 3, 4, 5] steps: - uses: actions/checkout@v4 @@ -97,7 +96,7 @@ jobs: echo "version=$RESOLVED_VERSION" >> $GITHUB_OUTPUT echo "Resolved Next.js version for 'next@${{ matrix.version }}' is '$RESOLVED_VERSION'" - name: Run Playwright tests - run: npm run test:ci:e2e -- --shard=${{ matrix.shard }}/5 + run: npm run test:ci:e2e -- --workers=8 env: NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} NEXT_VERSION: ${{ matrix.version }} From 927ec611e8807319bd063c2b64566314fa670fa1 Mon Sep 17 00:00:00 2001 From: Rob Stanford Date: Wed, 11 Dec 2024 11:31:35 +0000 Subject: [PATCH 2/2] feat: drastically increase workers for e2e! --- .github/workflows/run-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index f15a43db3..ce3ff7469 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -96,7 +96,7 @@ jobs: echo "version=$RESOLVED_VERSION" >> $GITHUB_OUTPUT echo "Resolved Next.js version for 'next@${{ matrix.version }}' is '$RESOLVED_VERSION'" - name: Run Playwright tests - run: npm run test:ci:e2e -- --workers=8 + run: npm run test:ci:e2e -- --workers=40 env: NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} NEXT_VERSION: ${{ matrix.version }}