From c6c4c218ca628f5e10e2b02427d7e46ce8aa694d Mon Sep 17 00:00:00 2001 From: Toby Bellwood Date: Fri, 17 Jan 2025 11:24:15 +1100 Subject: [PATCH] tests: save cypress screenshots --- .github/workflows/ui-workflow.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/ui-workflow.yaml b/.github/workflows/ui-workflow.yaml index 499de01c..c18e7414 100644 --- a/.github/workflows/ui-workflow.yaml +++ b/.github/workflows/ui-workflow.yaml @@ -111,6 +111,20 @@ jobs: cypress_keycloak: http://localhost:8088/auth cypress_url: http://localhost:3003 + - uses: actions/upload-artifact@v4 + # add the line below to store screenshots only on failures + if: failure() + with: + name: cypress-screenshots + path: cypress/screenshots + if-no-files-found: ignore # 'warn' or 'error' are also available, defaults to `warn` + - uses: actions/upload-artifact@v4 + if: failure() + with: + name: cypress-videos + path: cypress/videos + if-no-files-found: ignore # 'warn' or 'error' are also available, defaults to `warn` + - name: Stop Docker containers run: | make development-api-down