ci: show bench logs if ui test fails

This commit is contained in:
Ankush Menat
2021-07-02 22:35:15 +05:30
committed by Ankush
parent bedb0addf0
commit 203c2b2292
2 changed files with 5 additions and 1 deletions

View File

@@ -102,3 +102,7 @@ jobs:
run: cd ~/frappe-bench/ && bench --site test_site run-ui-tests erpnext --headless
env:
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
- name: Show bench console if tests failed
if: ${{ failure() }}
run: cat ~/frappe-bench/bench_run_logs.txt