fix: add cypress recordings to a path and upload them
This commit is contained in:
parent
7a99f885d4
commit
9b704be8a1
2 changed files with 13 additions and 1 deletions
10
.github/workflows/_base-ui-tests.yml
vendored
10
.github/workflows/_base-ui-tests.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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: {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue