File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99
1010env :
1111 APP_NAME : viewer
12+ CYPRESS_baseUrl : http://127.0.0.1:8080/index.php
1213
1314jobs :
1415 cypress :
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
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
You can’t perform that action at this time.
0 commit comments