From 617a0bbd769ca238dc950cf84bfc2a3bd8865778 Mon Sep 17 00:00:00 2001 From: "Patrik J. Braun" Date: Wed, 20 Sep 2023 21:30:25 +0200 Subject: [PATCH] Store screenshots on failure --- .github/workflows/build.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 201e6f27..bae75e72 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -68,6 +68,13 @@ jobs: uses: cypress-io/github-action@v6 with: start: npm run start-e2e-server + # after the test run completes store screenshots + - uses: actions/upload-artifact@v3 + if: failure() # Store screenshots only on failures + with: + name: cypress-screenshots + path: test/cypress/screenshots + if-no-files-found: ignore # 'warn' or 'error' are also available, defaults to `warn` create-release: runs-on: [ubuntu-latest]