diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d136f0cc7e4..5d36ed29cd4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -38,6 +38,12 @@ jobs: cd ./tests npm ci npx cypress run --headless --browser chrome + - name: Uploading cypress screenshots as an artifact + if: failure() + uses: actions/upload-artifact@v2 + with: + name: cypress_screenshots + path: ${{ github.workspace }}/tests/cypress/screenshots - name: Collect coverage data env: HOST_COVERAGE_DATA_DIR: ${{ github.workspace }} diff --git a/.github/workflows/publish_docker_images.yml b/.github/workflows/publish_docker_images.yml index 44aad7e9137..4c7353ee2c4 100644 --- a/.github/workflows/publish_docker_images.yml +++ b/.github/workflows/publish_docker_images.yml @@ -33,7 +33,14 @@ jobs: run: | cd ./tests npm ci - npx cypress run --headless --browser chrome + npm run cypress:run:chrome + - name: Uploading cypress screenshots as an artifact + if: failure() + uses: actions/upload-artifact@v2 + with: + name: cypress_screenshots + path: ${{ github.workspace }}/tests/cypress/screenshots + - name: Login to Docker Hub uses: docker/login-action@v1 with: diff --git a/.github/workflows/schedule.yml b/.github/workflows/schedule.yml index ecce8547728..90f53049f40 100644 --- a/.github/workflows/schedule.yml +++ b/.github/workflows/schedule.yml @@ -26,3 +26,9 @@ jobs: cd ./tests npm ci npm run cypress:run:firefox + - name: Uploading cypress screenshots as an artifact + if: failure() + uses: actions/upload-artifact@v2 + with: + name: cypress_screenshots + path: ${{ github.workspace }}/tests/cypress/screenshots