ci(cypress): use env variable for key

documentation ref: https://docs.cypress.io/guides/guides/command-line\#cypress-run
This commit is contained in:
Rucha Mahabal 2021-07-16 10:32:38 +05:30
parent 525d4d4776
commit 9dfddca22e

View File

@ -102,7 +102,7 @@ jobs:
- name: UI Tests - name: UI Tests
run: cd ~/frappe-bench/ && bench --site test_site run-ui-tests erpnext --headless run: cd ~/frappe-bench/ && bench --site test_site run-ui-tests erpnext --headless
env: env:
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} CYPRESS_RECORD_KEY: 60a8e3bf-08f5-45b1-9269-2b207d7d30cd
- name: Show bench console if tests failed - name: Show bench console if tests failed
if: ${{ failure() }} if: ${{ failure() }}