From 84edc1a2c421d192847a14e6d30c34c7204a2d9d Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20N=C3=A9grier?= Date: Wed, 15 Apr 2020 23:54:55 +0200 Subject: [PATCH] Running e2e tests on K8S environment --- .github/workflows/build-and-deploy.yml | 15 +++++++++++++++ README.md | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml index 2b00323..0f745b3 100644 --- a/.github/workflows/build-and-deploy.yml +++ b/.github/workflows/build-and-deploy.yml @@ -83,3 +83,18 @@ jobs: with: msg: Environment deployed at http://${{ env.GITHUB_REF_SLUG }}.workadventure.test.thecodingmachine.com 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" diff --git a/README.md b/README.md index d71c3f0..3d753c5 100644 --- a/README.md +++ b/README.md @@ -98,4 +98,4 @@ Vagrant destroy * `Vagrant destroy`: delete your VM Vagrant. ## Features developed -You have more details of features developed in back [README.md](./back/README.md). \ No newline at end of file +You have more details of features developed in back [README.md](./back/README.md). -- 2.25.1