mirror of
https://github.com/casdoor/casdoor.git
synced 2025-05-23 10:45:47 +08:00
fix: fix CI error by auto waiting for localhost:7001 to start up (#1548)
This commit is contained in:
parent
389744a27d
commit
29f1ec08a2
17
.github/workflows/build.yml
vendored
17
.github/workflows/build.yml
vendored
@ -97,21 +97,20 @@ jobs:
|
|||||||
- uses: actions/setup-node@v2
|
- uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: 16
|
node-version: 16
|
||||||
|
- name: back start
|
||||||
|
run: nohup go run ./main.go &
|
||||||
|
working-directory: ./
|
||||||
- name: front install
|
- name: front install
|
||||||
run: yarn install
|
run: yarn install
|
||||||
working-directory: ./web
|
working-directory: ./web
|
||||||
- name: front start
|
- name: front start
|
||||||
run: nohup yarn start &
|
run: nohup yarn start &
|
||||||
working-directory: ./web
|
working-directory: ./web
|
||||||
- name: back start
|
- uses: cypress-io/github-action@v4
|
||||||
run: nohup go run ./main.go &
|
with:
|
||||||
working-directory: ./
|
working-directory: ./web
|
||||||
- name: Sleep for starting
|
wait-on: 'http://localhost:7001'
|
||||||
run: sleep 90s
|
wait-on-timeout: 180
|
||||||
shell: bash
|
|
||||||
- name: e2e
|
|
||||||
run: npx cypress run --spec "**/e2e/**.cy.js"
|
|
||||||
working-directory: ./web
|
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v3
|
||||||
if: failure()
|
if: failure()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user