-
Notifications
You must be signed in to change notification settings - Fork 321
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into new-engine
- Loading branch information
Showing
45 changed files
with
1,347 additions
and
382 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 |
---|---|---|
|
@@ -2,8 +2,8 @@ name: Cypress E2E Tests | |
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '*/15 * * * *' # Runs every 5 minutes | ||
# schedule: | ||
# - cron: '*/5 * * * *' # Runs every 5 minutes | ||
|
||
jobs: | ||
cypress-tests: | ||
|
@@ -43,12 +43,17 @@ jobs: | |
with: | ||
version: 8.10.5 | ||
|
||
- name: Run Cypress tests | ||
- name: Install Cypress | ||
working-directory: app/web | ||
run: | | ||
pnpm i | ||
pnpm install cypress | ||
npx cypress run --spec "cypress/e2e/**" | ||
- uses: nick-fields/retry@v2 | ||
with: | ||
max_attempts: 3 | ||
timeout_minutes: 20 | ||
command: cd app/web && npx cypress run --spec "cypress/e2e/**" | ||
|
||
- name: 'Upload Cypress Recordings to Github' | ||
uses: actions/upload-artifact@v4 | ||
|
@@ -58,10 +63,7 @@ jobs: | |
path: app/web/cypress/videos/**/*.mp4 | ||
retention-days: 5 | ||
|
||
# TODO(johnrwatson): Enable this when we're happy with the synthetic above | ||
#- name: Send PagerDuty alert on failure | ||
# if: ${{ failure() }} | ||
# uses: Entle/[email protected] | ||
# with: | ||
# pagerduty-integration-key: '${{ secrets.PAGERDUTY_INTEGRATION_KEY }}' | ||
# pagerduty-dedup-key: github_workflow_failed | ||
- name: Send Slack Failure Webhook | ||
if: failure() | ||
run: | | ||
curl -X POST -H 'Content-type: application/json' --data "{\"text\": \":si: Failed Cypress E2E Test for Production: <https://github.com/systeminit/si/actions/runs/$GITHUB_RUN_ID|:test_tube: Link>\"}" ${{ secrets.SLACK_WEBHOOK_URL }} |
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
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
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
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
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
Oops, something went wrong.