Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
updated file
Browse files Browse the repository at this point in the history
  • Loading branch information
sagar-qa007 committed Jul 23, 2024
1 parent 036ff86 commit 612ed38
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/ci-test-limited-with-count.yml
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,8 @@ jobs:
echo '#!/bin/bash' > repeat_cypress.sh
for ((i=1; i<=${{ github.event.inputs.run_count }}; i++)); do
echo "echo Running Cypress test \$i" >> repeat_cypress.sh
echo "npx cypress run --config-file cypress_ci_custom.config.ts --spec ${{ env.specs_to_run }} --browser ${{ env.BROWSER_PATH }} --env NODE_ENV=development" || true >> repeat_cypress.sh
echo "npx cypress run --config-file cypress_ci_custom.config.ts --spec ${{ env.specs_to_run }} --browser ${{ env.BROWSER_PATH }} --env NODE_ENV=development" || true >> repeat_cypress.sh
echo "Completed iteration $i" >> iteration_log.txt
done
chmod +x repeat_cypress.sh
env:
Expand All @@ -296,7 +297,9 @@ jobs:
env: "NODE_ENV=development"

- name: Run the cypress test
run: ./repeat_cypress.sh
run: |
./repeat_cypress.sh
echo "Run count: ${{ github.event.inputs.run_count }}"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CYPRESS_USERNAME: ${{ secrets.CYPRESS_USERNAME }}
Expand Down Expand Up @@ -361,7 +364,7 @@ jobs:
CYPRESS_S3_SECRET: ${{ secrets.CYPRESS_S3_SECRET }}
CYPRESS_STATIC_ALLOCATION: true
continue-on-error: true

- name: Trim number of cypress log files
if: failure()
run: |
Expand Down

0 comments on commit 612ed38

Please sign in to comment.