From 550f11622cafd97f0f9005eb145e30f6ada84a47 Mon Sep 17 00:00:00 2001 From: Andrew Date: Tue, 18 Feb 2025 12:28:39 -0400 Subject: [PATCH] chore: update cypress action in the scheduled tests to; add test recordings (#2091) --- .github/workflows/cypress-staging.yaml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cypress-staging.yaml b/.github/workflows/cypress-staging.yaml index ad068dfcfd..c94e7e7e64 100644 --- a/.github/workflows/cypress-staging.yaml +++ b/.github/workflows/cypress-staging.yaml @@ -26,7 +26,7 @@ jobs: echo '${{ secrets.CYPRESS_ENV_JSON }}' > tests_cypress/cypress.env.json - name: Run the cypress tests - uses: cypress-io/github-action@d79d2d530a66e641eb4a5f227e13bc985c60b964 # v4.2.2 + uses: cypress-io/github-action@248bde77443c376edc45906ede03a1aba9da0462 # v5.8.4 with: record: false config: video=false,screenshotOnRunFailure=false @@ -35,6 +35,16 @@ jobs: spec: | cypress/e2e/admin/a11y/app_pages.cy.js cypress/e2e/admin/a11y/gca_pages.cy.js + - name: Upload test artifacts + uses: actions/upload-artifact@v4 + if: always() + with: + name: cypress-artifacts + path: | + tests_cypress/cypress/videos + tests_cypress/cypress/screenshots + retention-days: 30 + - name: Notify Slack channel if this job failed if: ${{ failure() }} run: |