Skip to content

Commit

Permalink
Add retry functionality to regression tests (#1984)
Browse files Browse the repository at this point in the history
* Adds action retry to cypress

This will accomodate any 60000ms timeout errors.

* Set limit to 5

* Change workflow name
  • Loading branch information
asteel-gsa authored Aug 30, 2023
1 parent a02a845 commit 077a8f3
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/regression-tests.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: Runs automated regression tests for the app
name: Run Regression Tests
on:
workflow_dispatch:
inputs:
Expand Down Expand Up @@ -45,10 +45,14 @@ jobs:
run: touch .env

- name: Run Cypress full submission test
uses: cypress-io/github-action@v6
uses: Wandalen/wretry.action@master
with:
working-directory: ./backend
spec: cypress/e2e/full-submission.cy.js
action: cypress-io/github-action@v6
with: |
working-directory: ./backend
spec: cypress/e2e/full-submission.cy.js
attempt_limit: 5
attempt_delay: 2000

- uses: actions/upload-artifact@v3
# add the line below to store screenshots only on failures
Expand Down

0 comments on commit 077a8f3

Please sign in to comment.