Skip to content

Commit f0d9ab3

Browse files
committed
fix: upload video artifacts on runner failure
1 parent c46fcc9 commit f0d9ab3

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
path: cypress/screenshots
6666
if-no-files-found: ignore # 'warn' or 'error' are also available, defaults to `warn`
6767
- uses: actions/upload-artifact@v4
68-
if: env.ACTIONS_RUNNER_DEBUG == 'true'
68+
if: failure()
6969
with:
7070
name: cypress-videos
7171
path: cypress/videos

cypress.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ module.exports = defineConfig({
55
e2e: {
66
baseUrl: 'http://localhost:1337',
77
specPattern: '**/*.cy.{js,ts,jsx,tsx}',
8-
video: process.env.ACTIONS_RUNNER_DEBUG,
8+
video: true,
99
defaultCommandTimeout: 20000,
1010
requestTimeout: 20000,
1111
setupNodeEvents(on, config) {

0 commit comments

Comments
 (0)