Upload Cypress recordings/screenshots on E2E failure (#3341)
This commit is contained in:
@@ -78,13 +78,23 @@ jobs:
|
||||
make
|
||||
|
||||
- name: Run E2E Tests
|
||||
id: e2e
|
||||
run: |
|
||||
.github/scripts/check-infra-dependencies.sh all
|
||||
make e2e-reset-db
|
||||
make e2e-serve-${{ matrix.fleet-tier }} &
|
||||
sleep 3
|
||||
make e2e-setup
|
||||
yarn cypress run --config-file cypress-${{ matrix.fleet-tier }}.json --config video=false
|
||||
yarn cypress run --config-file cypress-${{ matrix.fleet-tier }}.json
|
||||
|
||||
- name: Upload artifacts
|
||||
if: failure()
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: cypress
|
||||
path: |
|
||||
cypress/screenshots/
|
||||
cypress/videos/
|
||||
|
||||
|
||||
test-js:
|
||||
|
||||
Reference in New Issue
Block a user