From 47ef4ed58c14362d686338a3c28353223738c5a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Molakvo=C3=A6?= Date: Tue, 6 Aug 2024 16:33:47 +0200 Subject: [PATCH] fix: revert cypress changes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ --- .github/workflows/cypress.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cypress.yml b/.github/workflows/cypress.yml index aca91ae80..05f70537e 100644 --- a/.github/workflows/cypress.yml +++ b/.github/workflows/cypress.yml @@ -82,8 +82,11 @@ jobs: fail-fast: false matrix: # Run multiple copies of the current job in parallel - # Please increase the number or runners as your tests suite grows - containers: ['component', '1', '2', '3'] + # Please increase the number or runners as your tests suite grows (0 based index for e2e tests) + containers: [0, 1, 2, 3, 4, 5, 6, 7] + # Hack as strategy.job-total includes the component and GitHub does not allow math expressions + # Always aling this number with the total of e2e runners (max. index + 1) + total-containers: [8] name: runner ${{ matrix.containers }} @@ -123,8 +126,8 @@ jobs: TESTING: true GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} - CYPRESS_BUILD_ID: ${{ github.sha }}-${{ github.run_number }} - CYPRESS_GROUP: Run ${{ matrix.containers == 'component' && 'component' || 'E2E' }} + SPLIT: ${{ matrix.total-containers }} + SPLIT_INDEX: ${{ matrix.containers == 'component' && 0 || matrix.containers }}``` - name: Upload snapshots uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4