Skip to content

Commit 7b47f2f

Browse files
authored
Merge pull request #544 from nextcloud/fix/cypress
Fix cypress
2 parents facb321 + 92e68f7 commit 7b47f2f

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

.github/workflows/cypress.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99

1010
env:
1111
APP_NAME: viewer
12+
CYPRESS_baseUrl: http://127.0.0.1:8080/index.php
1213

1314
jobs:
1415
cypress:
@@ -65,8 +66,13 @@ jobs:
6566
run: |
6667
mkdir data
6768
./occ maintenance:install --verbose --database sqlite --admin-user admin --admin-pass admin
68-
./occ app:enable ${{ env.APP_NAME }}
69-
php -S localhost:8080 &
69+
./occ app:enable $APP_NAME
70+
php -S 0.0.0.0:8080 &
71+
72+
- name: Wait for server
73+
run: |
74+
npm install -g wait-on
75+
wait-on -i 500 -t 240000 $CYPRESS_baseUrl
7076
7177
- name: Cypress run
7278
uses: cypress-io/github-action@v1
@@ -76,8 +82,5 @@ jobs:
7682
# cypress env
7783
working-directory: apps/${{ env.APP_NAME }}
7884
ci-build-id: ${{ github.sha }}-${{ github.run_number }}
79-
# wait for server before running
80-
wait-on: "http://localhost:8080"
8185
env:
8286
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
83-
CYPRESS_baseUrl: http://localhost:8080/index.php

0 commit comments

Comments
 (0)