diff --git a/.github/workflows/ci-test-limited-with-count.yml b/.github/workflows/ci-test-limited-with-count.yml index d6553309d0f2..3399eaddb703 100644 --- a/.github/workflows/ci-test-limited-with-count.yml +++ b/.github/workflows/ci-test-limited-with-count.yml @@ -349,7 +349,12 @@ jobs: npx cypress-repeat-pro run -n ${{ inputs.run_count }} --force \ --spec ${{ env.specs_to_run }} \ --config-file "cypress_ci_custom.config.ts" - cat cy-repeat-summary.txt + cat cy-repeat-summary.txt + # Check if "Total Failed: 0" is present + if ! grep -q "Total Failed: 0" cy-repeat-summary.txt; then + echo "Tests failed, failing the GitHub Action." + exit 1 # Fails the step if tests failed + fi - name: Trim number of cypress log files if: failure()