Merge pull request #6491 from ToolJet/cypress-fix

fix for cypress
This commit is contained in:
Akshay 2023-05-22 16:03:42 +05:30 committed by GitHub
commit b9730b0393
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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