Skip to content

Commit

Permalink
Merge pull request #544 from nextcloud/fix/cypress
Browse files Browse the repository at this point in the history
Fix cypress
  • Loading branch information
skjnldsv authored Jul 20, 2020
2 parents facb321 + 92e68f7 commit 7b47f2f
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:

env:
APP_NAME: viewer
CYPRESS_baseUrl: http://127.0.0.1:8080/index.php

jobs:
cypress:
Expand Down Expand Up @@ -65,8 +66,13 @@ jobs:
run: |
mkdir data
./occ maintenance:install --verbose --database sqlite --admin-user admin --admin-pass admin
./occ app:enable ${{ env.APP_NAME }}
php -S localhost:8080 &
./occ app:enable $APP_NAME
php -S 0.0.0.0:8080 &
- name: Wait for server
run: |
npm install -g wait-on
wait-on -i 500 -t 240000 $CYPRESS_baseUrl
- name: Cypress run
uses: cypress-io/github-action@v1
Expand All @@ -76,8 +82,5 @@ jobs:
# cypress env
working-directory: apps/${{ env.APP_NAME }}
ci-build-id: ${{ github.sha }}-${{ github.run_number }}
# wait for server before running
wait-on: "http://localhost:8080"
env:
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
CYPRESS_baseUrl: http://localhost:8080/index.php

0 comments on commit 7b47f2f

Please sign in to comment.