Upload Cypress recordings/screenshots on E2E failure (#3341)

This commit is contained in:
Zach Wasserman
2021-12-12 18:08:07 -08:00
committed by GitHub
parent 7d77579ead
commit 4e7a0ce88a
4 changed files with 17 additions and 5 deletions
+11 -1
View File
@@ -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: