Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add upload-artifact step to ci.yml #22

Conversation

ThorntonMatthewD
Copy link
Collaborator

@ThorntonMatthewD ThorntonMatthewD commented Oct 8, 2023

Fixes #21

Summary

Uploads screenshots of test failures produced by Cypress in CI workflows.

They can be found in the "Artifacts" section of the summary pages of runs that have had e2e test failures.
Screenshot_2023-10-08_19-51-32

These can be downloaded for use with troubleshooting test failures.

Example Workflow Summary with Artifacts

@ThorntonMatthewD ThorntonMatthewD force-pushed the upload-cypress-failure-screenshots branch from 53f7df3 to 63bf1fa Compare October 8, 2023 23:41
@ThorntonMatthewD ThorntonMatthewD force-pushed the upload-cypress-failure-screenshots branch from d98af63 to d98b675 Compare October 8, 2023 23:52
@ThorntonMatthewD ThorntonMatthewD marked this pull request as ready for review October 8, 2023 23:55
@ThorntonMatthewD
Copy link
Collaborator Author

The impetus behind this PR is myself scratching my head on the test failure seen in #20 's latest workflow run. 😂 It looks like maybe like the dev server didn't start in time before Cypress timed out on the first test? I'm hoping having the screenshots available from CI runs will prove helpful in debugging this and other test failures.

@oliviasculley oliviasculley self-requested a review October 9, 2023 00:01
@oliviasculley oliviasculley merged commit 387f561 into hackgvl:develop Oct 9, 2023
1 check passed
@ThorntonMatthewD ThorntonMatthewD deleted the upload-cypress-failure-screenshots branch October 9, 2023 00:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upload Cypress Failure Screenshots in CI to Artifacts for Debugging
2 participants