From c93bc0dda28920e26a72fefdd6e221e712b6dd98 Mon Sep 17 00:00:00 2001 From: jakiuncle <88994283+jakiuncle@users.noreply.github.com> Date: Wed, 11 Jan 2023 23:56:09 +0800 Subject: [PATCH] fix: add e2e cypress screenshots and videos if failed (#1465) * feat: location error * feat: location error * feat: test error * feat add e2e * feat: delete cypress dependency * feat: Add e2e error feedback --- .github/workflows/build.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e5f8199f..d306b1fb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -107,12 +107,23 @@ jobs: run: nohup go run ./main.go & working-directory: ./ - name: Sleep for starting - run: sleep 60s + run: sleep 90s shell: bash - name: e2e run: npx cypress run --spec "**/e2e/**.cy.js" working-directory: ./web + - uses: actions/upload-artifact@v3 + if: failure() + with: + name: cypress-screenshots + path: ./web/cypress/screenshots + - uses: actions/upload-artifact@v3 + if: always() + with: + name: cypress-videos + path: ./web/cypress/videos + release-and-push: name: Release And Push runs-on: ubuntu-latest