fix: upload video artifacts on runner failure
parent
c46fcc9db8
commit
f0d9ab32bb
|
@ -65,7 +65,7 @@ jobs:
|
||||||
path: cypress/screenshots
|
path: cypress/screenshots
|
||||||
if-no-files-found: ignore # 'warn' or 'error' are also available, defaults to `warn`
|
if-no-files-found: ignore # 'warn' or 'error' are also available, defaults to `warn`
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v4
|
||||||
if: env.ACTIONS_RUNNER_DEBUG == 'true'
|
if: failure()
|
||||||
with:
|
with:
|
||||||
name: cypress-videos
|
name: cypress-videos
|
||||||
path: cypress/videos
|
path: cypress/videos
|
||||||
|
|
|
@ -5,7 +5,7 @@ module.exports = defineConfig({
|
||||||
e2e: {
|
e2e: {
|
||||||
baseUrl: 'http://localhost:1337',
|
baseUrl: 'http://localhost:1337',
|
||||||
specPattern: '**/*.cy.{js,ts,jsx,tsx}',
|
specPattern: '**/*.cy.{js,ts,jsx,tsx}',
|
||||||
video: process.env.ACTIONS_RUNNER_DEBUG,
|
video: true,
|
||||||
defaultCommandTimeout: 20000,
|
defaultCommandTimeout: 20000,
|
||||||
requestTimeout: 20000,
|
requestTimeout: 20000,
|
||||||
setupNodeEvents(on, config) {
|
setupNodeEvents(on, config) {
|
||||||
|
|
Loading…
Reference in New Issue