From 0107c92432639bf1de7d589a44b90149e203b1e0 Mon Sep 17 00:00:00 2001 From: "Mike P. Sinn" Date: Wed, 20 Apr 2022 22:09:06 -0500 Subject: [PATCH] Cypress action Took 8 minutes Took 1 minute --- .github/workflows/cypress.yml | 21 +++++++++++++++++++++ cypress.json | 1 - 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/cypress.yml diff --git a/.github/workflows/cypress.yml b/.github/workflows/cypress.yml new file mode 100644 index 0000000000..e95b42d643 --- /dev/null +++ b/.github/workflows/cypress.yml @@ -0,0 +1,21 @@ +name: Cypress tests +on: [push] +jobs: + cypress-run: + name: Cypress run + runs-on: ubuntu-20.04 + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Cypress run + uses: cypress-io/github-action@v2 + with: + record: true + env: + # pass the Dashboard record key as an environment variable + CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} + # pass GitHub token to allow accurately detecting a build vs a re-run build + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # pass the project ID from the secrets through environment variable + CYPRESS_PROJECT_ID: ${{ secrets.PROJECT_ID }} diff --git a/cypress.json b/cypress.json index f9814fae7e..89658fd7d2 100644 --- a/cypress.json +++ b/cypress.json @@ -1,7 +1,6 @@ { "chromeWebSecurity": false, "baseUrl": "https://app.quantimo.do", - "projectId": "ee8wan", "pageLoadTimeout": 60000, "videoCompression": false, "videoUploadOnPasses": false,