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
This commit is contained in:
jakiuncle
2023-01-11 23:56:09 +08:00
committed by GitHub
parent 7d25b9cdd8
commit c93bc0dda2

View File

@ -107,12 +107,23 @@ jobs:
run: nohup go run ./main.go & run: nohup go run ./main.go &
working-directory: ./ working-directory: ./
- name: Sleep for starting - name: Sleep for starting
run: sleep 60s run: sleep 90s
shell: bash shell: bash
- name: e2e - name: e2e
run: npx cypress run --spec "**/e2e/**.cy.js" run: npx cypress run --spec "**/e2e/**.cy.js"
working-directory: ./web 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: release-and-push:
name: Release And Push name: Release And Push
runs-on: ubuntu-latest runs-on: ubuntu-latest