From d98b67570721b0da5ac52e1faac9625d6e7868f8 Mon Sep 17 00:00:00 2001 From: Matthew Thornton <44626690+ThorntonMatthewD@users.noreply.github.com> Date: Sun, 8 Oct 2023 19:52:30 -0400 Subject: [PATCH] Add upload-artifact step --- .github/workflows/ci.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 060d5ce..35c50a6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,4 +31,15 @@ jobs: run: npm run test:unit - name: Run end-to-end tests + id: e2eTests run: npm run test:e2e + + # Uploads the failure screenshots produced by Cypress + - uses: actions/upload-artifact@v3 + if: always() && (steps.e2eTests.outcome == 'failure') + name: Upload Cypress failure screenshots + with: + name: cypress-screenshots + path: cypress/screenshots/**/*.png + if-no-files-found: ignore + retention-days: 1