From d1fea6ba47506e69f920a08400962a652ac9e440 Mon Sep 17 00:00:00 2001 From: Saroj <43822041+sarojsarab@users.noreply.github.com> Date: Thu, 7 Sep 2023 17:00:39 +0530 Subject: [PATCH] ci: Cypress rerun improvements (#27072) ## Description - Cypress parallel run improvements #### Type of change - Workflow changes ## Testing - Workflow run --- .github/workflows/ci-test-custom-script.yml | 2 +- .github/workflows/ci-test-hosted.yml | 2 +- .github/workflows/ci-test-limited.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci-test-custom-script.yml b/.github/workflows/ci-test-custom-script.yml index 45563e589b..8cb832d897 100644 --- a/.github/workflows/ci-test-custom-script.yml +++ b/.github/workflows/ci-test-custom-script.yml @@ -393,7 +393,7 @@ jobs: # In case of second attempt only run failed specs - name: Run the cypress test with failed tests - if: steps.run_result.outputs.run_result == 'failedtest' + if: steps.run_result.outputs.run_result == 'failedtest' && env.failed_spec_env != '' id: cypress_test_failedtest uses: cypress-io/github-action@v5 env: diff --git a/.github/workflows/ci-test-hosted.yml b/.github/workflows/ci-test-hosted.yml index 6ce21e9098..5c062619ff 100644 --- a/.github/workflows/ci-test-hosted.yml +++ b/.github/workflows/ci-test-hosted.yml @@ -329,7 +329,7 @@ jobs: # In case of second attempt only run failed specs - name: Run the cypress test with failed tests - if: steps.run_result.outputs.run_result == 'failedtest' + if: steps.run_result.outputs.run_result == 'failedtest' && env.failed_spec_env != '' id: cypress_test_failedtest uses: cypress-io/github-action@v5 env: diff --git a/.github/workflows/ci-test-limited.yml b/.github/workflows/ci-test-limited.yml index 173548f7d3..a6a7e44b2c 100644 --- a/.github/workflows/ci-test-limited.yml +++ b/.github/workflows/ci-test-limited.yml @@ -438,7 +438,7 @@ jobs: # In case of second attempt only run failed specs - name: Run the cypress test with failed tests id: cypress_test_failedtest - if: steps.run_result.outputs.run_result == 'failedtest' + if: steps.run_result.outputs.run_result == 'failedtest' && env.failed_spec_env != '' uses: cypress-io/github-action@v5 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}