CI: Added screenshot for cypress failure (#35671)

Added screenshot archival for cypress failure

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **New Features**
- Added a new step in the CI workflow to upload screenshots as artifacts
when Cypress tests fail, enhancing debugging capabilities.
  
- **Bug Fixes**
- Improved the overall functionality of the CI process by providing
immediate access to visual evidence of test failures.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
yatinappsmith 2024-08-13 19:05:32 +05:30 committed by GitHub
parent ec4a376600
commit 496cecf7c6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -372,6 +372,13 @@ jobs:
path: ${{ github.workspace }}/app/client/cypress/cypress-logs
overwrite: true
# Upload the screenshots as artifacts if there's a failure
- uses: actions/upload-artifact@v3
if: failure()
with:
name: cypress-screenshots-${{ matrix.job }}
path: ${{ github.workspace }}/app/client/cypress/screenshots/
- name: Collect CI container logs
if: failure()
working-directory: "."