Skip to content

Commit 97a9fc3

Browse files
committed
chore: Enable video recording on debug
Signed-off-by: Marcel Müller <marcel-mueller@gmx.de>
1 parent c41146c commit 97a9fc3

2 files changed

Lines changed: 10 additions & 5 deletions

File tree

.github/workflows/cypress.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ jobs:
9595
matrix:
9696
# Run multiple copies of the current job in parallel
9797
# Please increase the number or runners as your tests suite grows
98-
containers: ['1', '2', '3']
98+
containers: ['1', '2']
9999

100100
name: runner ${{ matrix.containers }}
101101

@@ -138,12 +138,14 @@ jobs:
138138
CYPRESS_BUILD_ID: ${{ github.sha }}-${{ github.run_number }}
139139
CYPRESS_GROUP: Run ${{ matrix.containers == 'component' && 'component' || 'E2E' }}
140140

141-
- name: Upload snapshots
142-
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
141+
- name: Upload snapshots and videos
142+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
143143
if: always()
144144
with:
145-
name: snapshots_${{ matrix.containers }}
146-
path: cypress/snapshots
145+
name: snapshots_videos_${{ matrix.containers }}
146+
path: |
147+
cypress/snapshots
148+
cypress/videos
147149
148150
- name: Extract NC logs
149151
if: failure() && matrix.containers != 'component'

cypress.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ export default defineConfig({
2020
// Needed to trigger `after:run` events with cypress open
2121
experimentalInteractiveRunEvents: true,
2222

23+
// disabled if running in CI but enabled in debug mode
24+
video: !process.env.CI || !!process.env.RUNNER_DEBUG,
25+
2326
// faster video processing
2427
videoCompression: false,
2528

0 commit comments

Comments
 (0)