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:
parent
ec4a376600
commit
496cecf7c6
7
.github/workflows/ci-test-custom-script.yml
vendored
7
.github/workflows/ci-test-custom-script.yml
vendored
|
|
@ -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: "."
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user