Fixing e2e test URL
This commit is contained in:
parent
b652a986c8
commit
2d20302ab2
10
.github/workflows/build-and-deploy.yml
vendored
10
.github/workflows/build-and-deploy.yml
vendored
@ -112,20 +112,20 @@ jobs:
|
|||||||
uses: cypress-io/github-action@v1
|
uses: cypress-io/github-action@v1
|
||||||
if: ${{ env.GITHUB_REF_SLUG != 'master' }}
|
if: ${{ env.GITHUB_REF_SLUG != 'master' }}
|
||||||
env:
|
env:
|
||||||
CYPRESS_BASE_URL: https://${{ env.GITHUB_REF_SLUG }}.workadventure.test.thecodingmachine.com
|
CYPRESS_BASE_URL: https://play.${{ env.GITHUB_REF_SLUG }}.workadventure.test.thecodingmachine.com
|
||||||
with:
|
with:
|
||||||
env: host=${{ env.GITHUB_REF_SLUG }}.workadventure.test.thecodingmachine.com,port=80
|
env: host=play.${{ env.GITHUB_REF_SLUG }}.workadventure.test.thecodingmachine.com,port=80
|
||||||
spec: cypress/integration/spec.js
|
spec: cypress/integration/spec.js
|
||||||
wait-on: https://${{ env.GITHUB_REF_SLUG }}.workadventure.test.thecodingmachine.com
|
wait-on: https://play.${{ env.GITHUB_REF_SLUG }}.workadventure.test.thecodingmachine.com
|
||||||
working-directory: e2e
|
working-directory: e2e
|
||||||
|
|
||||||
- name: Run Cypress tests in prod
|
- name: Run Cypress tests in prod
|
||||||
uses: cypress-io/github-action@v1
|
uses: cypress-io/github-action@v1
|
||||||
if: ${{ env.GITHUB_REF_SLUG == 'master' }}
|
if: ${{ env.GITHUB_REF_SLUG == 'master' }}
|
||||||
env:
|
env:
|
||||||
CYPRESS_BASE_URL: https://workadventu.re
|
CYPRESS_BASE_URL: https://play.workadventu.re
|
||||||
with:
|
with:
|
||||||
env: host=workadventu.re
|
env: host=play.workadventu.re
|
||||||
spec: cypress/integration/spec.js
|
spec: cypress/integration/spec.js
|
||||||
wait-on: https://workadventu.re
|
wait-on: https://workadventu.re
|
||||||
working-directory: e2e
|
working-directory: e2e
|
||||||
|
Loading…
Reference in New Issue
Block a user