Skip to content

Commit 1c52dc4

Browse files
feat: upload Cypress screenshots on test failure (#936)
Automatically upload Cypress screenshots when integration tests fail, with: - 30-day retention and compression level 6 - Graceful skip if screenshots folder is empty - Simplified workflow without per-step outcome checks Helps debugging CI test failures for CRA, NextJS, and Gatsby apps.
2 parents b0f953f + f849353 commit 1c52dc4

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/integration.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,13 @@ jobs:
6565

6666
- name: Run integration test (Gatsby)
6767
run: npm run test:gatsby
68+
69+
- name: Upload Cypress screenshots
70+
if: failure()
71+
uses: actions/upload-artifact@v4
72+
with:
73+
name: cypress-screenshots-${{ github.run_id }}
74+
path: cypress/screenshots
75+
retention-days: 30
76+
compression-level: 6
77+
if-no-files-found: ignore

0 commit comments

Comments
 (0)