From 95bd51cfc4fc1f87766ea6392ed53b3a5f745f61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Dubigny?= Date: Fri, 22 Mar 2024 18:29:37 +0100 Subject: [PATCH] tests: upload video in case of failure --- .github/workflows/ci.yml | 11 +++++++++++ e2e/cypress.config.ts | 2 ++ 2 files changed, 13 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2e20a1b..90c5853 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,3 +29,14 @@ jobs: working-directory: ./e2e start: npm start wait-on: http://localhost:3000 + # Store tests runs in case of failure + - uses: actions/upload-artifact@v4 + if: failure() + with: + name: cypress-screenshots + path: e2e/cypress/screenshots + - uses: actions/upload-artifact@v4 + if: failure() + with: + name: cypress-videos + path: e2e/cypress/videos diff --git a/e2e/cypress.config.ts b/e2e/cypress.config.ts index ccdb22d..ed98318 100644 --- a/e2e/cypress.config.ts +++ b/e2e/cypress.config.ts @@ -12,6 +12,8 @@ export default defineConfig({ baseUrl: "http://localhost:3000", specPattern: "**/*.feature", setupNodeEvents, + video: true, + videoCompression: 32, supportFile: false, }, env: {