diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 65e3fa4..5af0e63 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -5,20 +5,33 @@ on: jobs: cypress-run: runs-on: ubuntu-latest - container: - image: cypress/browsers:node18.12.0-chrome106-ff106 - options: --user 1001 + #container: + # image: cypress/browsers:node18.12.0-chrome106-ff106 + # options: --user 1001 #defaults: # run: # working-directory: tests steps: - - uses: actions/checkout@v4 - - uses: cypress-io/github-action@v6 + - uses: actions/checkout@v3 + - uses: cypress-io/github-action@v5 with: #build : npm run build #start : npm start - browser: firefox + #browser: firefox #start: npm start #record: true - working-directory: tests \ No newline at end of file + working-directory: tests + - uses: actions/upload-artifact@v3 + # add the line below to store screenshots only on failures + if: failure() + with: + name: cypress-screenshots + path: cypress/screenshots + if-no-files-found: ignore # 'warn' or 'error' are also available, defaults to `warn` + - uses: actions/upload-artifact@v3 + with: + name: cypress-videos + path: cypress/videos + if-no-files-found: ignore # 'warn' or 'error' are also available, defaults to `warn` + \ No newline at end of file