diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 560e0775..cc994e5f 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -95,6 +95,13 @@ jobs: wait-on: 'http://localhost:3000' wait-on-timeout: 120 config-file: cypress.config.js + - name: Upload Cypress videos + if: failure() + uses: actions/upload-artifact@v3 + with: + working-directory: e2e-test-app + name: cypress-videos + path: /home/runner/work/amplify-codegen-ui/amplify-codegen-ui/e2e-test-app/cypress/videos env: REACT_APP_USER_EMAIL: ${{ secrets.E2E_TEST_USER_EMAIL }} REACT_APP_USER_PASSWORD: ${{ secrets.E2E_TEST_USER_PASSWORD }} @@ -123,6 +130,12 @@ jobs: wait-on: 'http://localhost:3000' wait-on-timeout: 210 config-file: cypress.config.ts + - name: Upload Cypress videos + if: failure() + uses: actions/upload-artifact@v3 + with: + name: cypress-videos + path: /home/runner/work/amplify-codegen-ui/amplify-codegen-ui/packages/integration-test/cypress/videos - name: Check Integ Test Coverage working-directory: packages/integration-test run: node cypress/scripts/generateCoverageSummary.mjs