From f8493532de946c5ebb0e381884907c4939262728 Mon Sep 17 00:00:00 2001 From: Yogesh Chaudhary Date: Wed, 19 Nov 2025 00:46:16 +0530 Subject: [PATCH] feat: upload Cypress screenshots on test failure with optimized retention and compression --- .github/workflows/integration.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 89afc312..70ecdc81 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -65,3 +65,13 @@ jobs: - name: Run integration test (Gatsby) run: npm run test:gatsby + + - name: Upload Cypress screenshots + if: failure() + uses: actions/upload-artifact@v4 + with: + name: cypress-screenshots-${{ github.run_id }} + path: cypress/screenshots + retention-days: 30 + compression-level: 6 + if-no-files-found: ignore