ci: upload cypress recordings on failure (#35031)
This commit is contained in:
parent
e61b207372
commit
93aabafca3
1 changed files with 3 additions and 0 deletions
3
.github/workflows/_base-ui-tests.yml
vendored
3
.github/workflows/_base-ui-tests.yml
vendored
|
|
@ -103,6 +103,7 @@ jobs:
|
|||
echo "BROWSER_PATH=$(which chrome)" >> $GITHUB_ENV
|
||||
|
||||
- name: Run Tests
|
||||
id: ui-tests
|
||||
run: |
|
||||
source ${GITHUB_WORKSPACE}/env/bin/activate
|
||||
bench --site test_site \
|
||||
|
|
@ -129,11 +130,13 @@ jobs:
|
|||
name: coverage-js-${{ matrix.index }}
|
||||
path: ./apps/${{ github.event.repository.name }}/.cypress-coverage/clover.xml
|
||||
- name: Compress Cypress Videos
|
||||
if: steps.ui-tests.outcome == 'failure'
|
||||
run: |
|
||||
if find ./cypressVideos -mindepth 1 | read; then
|
||||
zip -r cypress_recordings.zip ./cypressVideos
|
||||
fi
|
||||
- name: Upload Cypress Videos
|
||||
if: steps.ui-tests.outcome == 'failure'
|
||||
uses: actions/upload-artifact@v5
|
||||
with:
|
||||
name: Cypress CI Video Recordings
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue