diff --git a/.github/workflows/local-regression-tests.yml b/.github/workflows/local-regression-tests.yml index 06baf89238..7426a37c82 100644 --- a/.github/workflows/local-regression-tests.yml +++ b/.github/workflows/local-regression-tests.yml @@ -73,6 +73,9 @@ jobs: - name: remove node_modules/.bin run: sudo rm -rf /home/runner/work/FAC/FAC/backend/node_modules/ + - name: Create .env file + run: touch .env + - name: Run Cypress full submission test uses: Wandalen/wretry.action@master with: @@ -81,5 +84,13 @@ jobs: working-directory: ./backend spec: cypress/e2e/full-submission.cy.js browser: chrome - attempt_limit: 5 + attempt_limit: 2 attempt_delay: 2000 + + - uses: actions/upload-artifact@v3 + # add the line below to store screenshots only on failures + if: failure() + with: + name: cypress-screenshots + path: backend/cypress/screenshots + if-no-files-found: warn # 'warn' or 'error' are also available, defaults to `warn`