Skip to content

Commit

Permalink
tests: upload video in case of failure
Browse files Browse the repository at this point in the history
  • Loading branch information
rdubigny committed Mar 22, 2024
1 parent fa54427 commit 95bd51c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,14 @@ jobs:
working-directory: ./e2e
start: npm start
wait-on: http://localhost:3000
# Store tests runs in case of failure
- uses: actions/upload-artifact@v4
if: failure()
with:
name: cypress-screenshots
path: e2e/cypress/screenshots
- uses: actions/upload-artifact@v4
if: failure()
with:
name: cypress-videos
path: e2e/cypress/videos
2 changes: 2 additions & 0 deletions e2e/cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ export default defineConfig({
baseUrl: "http://localhost:3000",
specPattern: "**/*.feature",
setupNodeEvents,
video: true,
videoCompression: 32,
supportFile: false,
},
env: {
Expand Down

0 comments on commit 95bd51c

Please sign in to comment.