chore: upload cypress video's as artifacts in debug mode of github actions
parent
e22906afa4
commit
c46fcc9db8
|
@ -64,6 +64,12 @@ jobs:
|
|||
name: cypress-screenshots
|
||||
path: cypress/screenshots
|
||||
if-no-files-found: ignore # 'warn' or 'error' are also available, defaults to `warn`
|
||||
- uses: actions/upload-artifact@v4
|
||||
if: env.ACTIONS_RUNNER_DEBUG == 'true'
|
||||
with:
|
||||
name: cypress-videos
|
||||
path: cypress/videos
|
||||
if-no-files-found: ignore # 'warn' or 'error' are also available, defaults to `warn`
|
||||
- name: Upload coverage to Codecov
|
||||
uses: codecov/codecov-action@v2
|
||||
with:
|
||||
|
|
|
@ -5,7 +5,7 @@ module.exports = defineConfig({
|
|||
e2e: {
|
||||
baseUrl: 'http://localhost:1337',
|
||||
specPattern: '**/*.cy.{js,ts,jsx,tsx}',
|
||||
video: false,
|
||||
video: process.env.ACTIONS_RUNNER_DEBUG,
|
||||
defaultCommandTimeout: 20000,
|
||||
requestTimeout: 20000,
|
||||
setupNodeEvents(on, config) {
|
||||
|
|
Loading…
Reference in New Issue