From 5c8815d95f525b6e1f89d59578c1830fdc54f525 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 +++++++++++ 1 file changed, 11 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