ci: add cypress E2E workflow#5745
Merged
walterbender merged 4 commits intosugarlabs:masterfrom Feb 15, 2026
Merged
Conversation
Contributor
|
✅ All Jest tests passed! This PR is ready to merge. |
Contributor
|
✅ All Jest tests passed! This PR is ready to merge. |
Contributor
|
✅ All Jest tests passed! This PR is ready to merge. |
Contributor
|
✅ All Jest tests passed! This PR is ready to merge. |
Contributor
Author
|
@walterbender the e2e test was failing because fullscreen was not working properly in the CI environment, i have fixed that problem in this PR itself so that the checks pass and the PR can be merged cleanly. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR adds a GitHub Actions workflow to automatically run Cypress E2E tests on every pull request and push to
master.The project already has Cypress configured with E2E tests in cypress/e2e/main.cy.js covering loading, audio controls, toolbar/navigation, file operations, UI elements, and Planet page interactions but there was no CI workflow to run them automatically. This PR closes that gap.
Triggers
pull_requestonopenedandsynchronize(every new commit on a PR)pushtomasterbranchSteps
actions/checkout@v4actions/setup-node@v4cypress-io/github-action@v6npm ci), starts server (npm start), waits forhttp://127.0.0.1:3000, runs all E2E tests in Chromeactions/upload-artifact@v4cypress/screenshotsas artifact on failure onlySecurity & Best Practices
pull_request(notpull_request_target) to ensure safe execution for external fork contributionsnpm cifor reproducible installs from lockfilecache: 'npm') for faster CI runs