From 9b704be8a1d3a0ed4e954f33439bbf6e28ad9924 Mon Sep 17 00:00:00 2001 From: sokumon Date: Tue, 2 Dec 2025 15:53:40 +0530 Subject: [PATCH] fix: add cypress recordings to a path and upload them --- .github/workflows/_base-ui-tests.yml | 12 +++++++++++- cypress.config.js | 2 ++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/_base-ui-tests.yml b/.github/workflows/_base-ui-tests.yml index f1eae84c09..40e0db903d 100644 --- a/.github/workflows/_base-ui-tests.yml +++ b/.github/workflows/_base-ui-tests.yml @@ -128,6 +128,16 @@ jobs: with: name: coverage-js-${{ matrix.index }} path: ./apps/${{ github.event.repository.name }}/.cypress-coverage/clover.xml + - name: Compress Cypress Videos + run: | + zip -r cypress_recordings.zip ./cypressVideos + - name: Upload Cypress Videos + uses: actions/upload-artifact@v5 + with: + name: Cypress CI Video Recordings + path: ./cypress_recordings.zip + + - name: Upload coverage data uses: actions/upload-artifact@v5 @@ -135,7 +145,7 @@ jobs: with: name: coverage-py-${{ matrix.index }} path: ./sites/*-coverage*.xml - + - name: Setup tmate session uses: mxschmitt/action-tmate@v3 if: ${{ failure() && contains( github.event.pull_request.labels.*.name, 'debug-gha') }} diff --git a/cypress.config.js b/cypress.config.js index b2b49bc63d..03361f4671 100644 --- a/cypress.config.js +++ b/cypress.config.js @@ -1,5 +1,6 @@ const { defineConfig } = require("cypress"); const fs = require("fs"); +const path = require("path"); module.exports = defineConfig({ projectId: "92odwv", @@ -8,6 +9,7 @@ module.exports = defineConfig({ defaultCommandTimeout: 20000, pageLoadTimeout: 15000, video: true, + videosFolder: path.resolve(__dirname, "..", "..") + "/cypressVideos/", viewportHeight: 960, viewportWidth: 1400, retries: {