Skip to content

Commit f373399

Browse files
skjnldsvnpmbuildbot[bot]
authored andcommitted
Fix cypress
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
1 parent 6cde0f3 commit f373399

3 files changed

Lines changed: 14 additions & 11 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

js/viewer.js

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/viewer.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)