From 8d081e05b44f32950edb1520c634abc0ef4549d7 Mon Sep 17 00:00:00 2001 From: Adish M Date: Mon, 22 May 2023 15:46:43 +0530 Subject: [PATCH] fix for cypress --- .github/workflows/cypress.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/cypress.yml b/.github/workflows/cypress.yml index 3b23b17ac2..07ab30db25 100644 --- a/.github/workflows/cypress.yml +++ b/.github/workflows/cypress.yml @@ -33,11 +33,12 @@ jobs: sleep 1 done - # - name: Getting cypress secrets - # # use quotes around the secret, as its value - # # is simply inserted as a string into the command - # run: | - # echo '${{ secrets.CYPRESS_SECRETS }}' > cypress.env.json + - name: create-json + id: create-json + uses: jsdaniell/create-json@v1.2.2 + with: + name: "cypress.env.json" + json: ${{ secrets.CYPRESS_SECRETS }} - name: Cypress integration test uses: cypress-io/github-action@v5 @@ -45,7 +46,9 @@ jobs: working-directory: ./cypress-tests config: "baseUrl=https://tooljet-pr-${{ env.PR_NUMBER }}.onrender.com" config-file: cypress-run.config.js - env: ${{ secrets.CYPRESS_SECRETS }} + # env: true + # env: + # CYPRESS_SECRETS: ${{ secrets.CYPRESS_SECRETS }} - name: Capturing screenshots uses: actions/upload-artifact@v3