From 01f2b83e31ba937fa27a236a87046a19f8cdde64 Mon Sep 17 00:00:00 2001 From: Saqib Ansari Date: Thu, 19 Mar 2026 13:26:55 +0530 Subject: [PATCH] fix: add env var for cypress-split --- .github/workflows/_base-ui-tests.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/_base-ui-tests.yml b/.github/workflows/_base-ui-tests.yml index a9d91d8686..82d35320e4 100644 --- a/.github/workflows/_base-ui-tests.yml +++ b/.github/workflows/_base-ui-tests.yml @@ -115,6 +115,8 @@ jobs: --ci-build-id $GITHUB_RUN_ID-$GITHUB_RUN_ATTEMPT env: CYPRESS_RECORD_KEY: 4a48f41c-11b3-425b-aa88-c58048fa69eb + SPLIT: ${{ inputs.parallel-runs }} + SPLIT_INDEX: ${{ strategy.job-index }} - name: Stop server and wait for coverage file if: inputs.enable-coverage @@ -131,7 +133,7 @@ jobs: path: ./apps/${{ github.event.repository.name }}/.cypress-coverage/clover.xml - name: Compress Cypress Videos if: always() && steps.ui-tests.outcome == 'failure' - run: | + run: | if find ./cypressVideos -mindepth 1 | read; then zip -r cypress_recordings.zip ./cypressVideos fi @@ -142,7 +144,7 @@ jobs: name: Cypress CI Video Recordings path: ./cypress_recordings.zip - + - name: Upload coverage data uses: actions/upload-artifact@v7 @@ -150,7 +152,7 @@ jobs: with: name: coverage-py-${{ matrix.index }} path: ./sites/*-coverage*.xml - + - name: Setup tmate session uses: mxschmitt/action-tmate@v3 if: ${{ failure() && contains( github.event.pull_request.labels.*.name, 'debug-gha') }}