From c6e389078b42a4ecc2184a52d89d673436fa6cb3 Mon Sep 17 00:00:00 2001 From: Ella <4710635+ellatrix@users.noreply.github.com> Date: Fri, 24 Nov 2023 03:40:31 +0100 Subject: [PATCH] E2e tests: merge Puppeteer into single job, split Playwright further (#56363) * E2e tests: merge Puppeteer into single job, split Playwright further * Remove shard handling for Puppeteer --------- Co-authored-by: George Mamadashvili --- .github/workflows/end2end-test.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/end2end-test.yml b/.github/workflows/end2end-test.yml index 9bd6ba212f0d8..777549e334aa9 100644 --- a/.github/workflows/end2end-test.yml +++ b/.github/workflows/end2end-test.yml @@ -17,14 +17,11 @@ concurrency: jobs: e2e-puppeteer: - name: Puppeteer - ${{ matrix.part }} + name: Puppeteer runs-on: ubuntu-latest if: ${{ github.repository == 'WordPress/gutenberg' || github.event_name == 'pull_request' }} strategy: fail-fast: false - matrix: - part: [1, 2, 3] - totalParts: [3] steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 @@ -43,8 +40,7 @@ jobs: - name: Running the tests run: | - npx wp-scripts test-e2e --config=./packages/e2e-tests/jest.config.js --listTests > ~/.jest-e2e-tests - npx wp-scripts test-e2e --config=./packages/e2e-tests/jest.config.js --cacheDirectory="$HOME/.jest-cache" --runTestsByPath $( awk 'NR % ${{ matrix.totalParts }} == ${{ matrix.part }} - 1' < ~/.jest-e2e-tests ) + npx wp-scripts test-e2e --config=./packages/e2e-tests/jest.config.js --cacheDirectory="$HOME/.jest-cache" - name: Archive debug artifacts (screenshots, HTML snapshots) uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3 @@ -69,8 +65,8 @@ jobs: strategy: fail-fast: false matrix: - part: [1, 2, 3, 4] - totalParts: [4] + part: [1, 2, 3, 4, 5, 6, 7, 8] + totalParts: [8] steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1