Running e2e tests on K8S environment
This commit is contained in:
parent
935745b3b5
commit
84edc1a2c4
15
.github/workflows/build-and-deploy.yml
vendored
15
.github/workflows/build-and-deploy.yml
vendored
@ -83,3 +83,18 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
msg: Environment deployed at http://${{ env.GITHUB_REF_SLUG }}.workadventure.test.thecodingmachine.com
|
msg: Environment deployed at http://${{ env.GITHUB_REF_SLUG }}.workadventure.test.thecodingmachine.com
|
||||||
check_for_duplicate_msg: true
|
check_for_duplicate_msg: true
|
||||||
|
|
||||||
|
- name: Run Cypress tests
|
||||||
|
uses: cypress-io/github-action@v1
|
||||||
|
with:
|
||||||
|
env: host=${{ env.GITHUB_REF_SLUG }}.workadventure.test.thecodingmachine.com,port=80
|
||||||
|
spec: cypress/integration/spec1.js
|
||||||
|
wait-on: http://${{ env.GITHUB_REF_SLUG }}.workadventure.test.thecodingmachine.com
|
||||||
|
working-directory: e2e
|
||||||
|
|
||||||
|
- name: "Upload the screenshot on test failure"
|
||||||
|
uses: actions/upload-artifact@v1
|
||||||
|
if: failure()
|
||||||
|
with:
|
||||||
|
name: "screenshot"
|
||||||
|
path: "./e2e/cypress/screenshots/spec.js/WorkAdventureGame -- loads (failed).png"
|
||||||
|
@ -98,4 +98,4 @@ Vagrant destroy
|
|||||||
* `Vagrant destroy`: delete your VM Vagrant.
|
* `Vagrant destroy`: delete your VM Vagrant.
|
||||||
|
|
||||||
## Features developed
|
## Features developed
|
||||||
You have more details of features developed in back [README.md](./back/README.md).
|
You have more details of features developed in back [README.md](./back/README.md).
|
||||||
|
Loading…
Reference in New Issue
Block a user