-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
44 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,14 +6,9 @@ jobs: | |
cypress-run: | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
# when one test fails, DO NOT cancel the other | ||
# containers, because this will kill Cypress processes | ||
# leaving Cypress Cloud hanging ... | ||
# https://github.com/cypress-io/github-action/issues/48 | ||
fail-fast: false | ||
matrix: | ||
# run n copies of the current job in parallel | ||
node: [16.18] | ||
node: [18] | ||
steps: | ||
- name: Waiting for 200 from the Vercel Preview | ||
uses: patrickedqvist/[email protected] | ||
|
@@ -31,11 +26,18 @@ jobs: | |
# Install NPM dependencies, cache them correctly | ||
# and run all Cypress tests | ||
- name: Cypress run | ||
uses: cypress-io/github-action@v5 | ||
uses: cypress-io/github-action@v6 | ||
with: | ||
wait-on: ${{steps.previewUrl.outputs.url}} | ||
config: baseUrl="${{steps.previewUrl.outputs.url}}" | ||
env: | ||
# Recommended: pass the GitHub token lets this action correctly | ||
# determine the unique run id necessary to re-run the checks | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: 'Upload failure screenshots' | ||
if: failure() | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
path: cypress/screenshots/ | ||
retention-days: 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters