ci(ui-tests): Print 'bench start' log on failure

Co-authored-by: Ankush Menat <ankush@frappe.io>
This commit is contained in:
Gavin D'souza 2022-06-27 12:19:54 +05:30
parent b867dedf15
commit aa83965313
2 changed files with 5 additions and 1 deletions

View file

@ -59,7 +59,7 @@ cd ./apps/frappe || exit
yarn add node-sass@4.13.1
cd ../..
bench start &
bench start &> bench_start.log &
bench --site test_site reinstall --yes
if [ "$TYPE" == "server" ]; then bench --site test_site_producer reinstall --yes; fi
if [ "$TYPE" == "server" ]; then CI=Yes bench build --app frappe; fi

View file

@ -175,3 +175,7 @@ jobs:
files: /home/runner/frappe-bench/sites/coverage.xml
verbose: true
flags: server
- name: Show bench console if tests failed
if: ${{ failure() }}
run: cat ~/frappe-bench/bench_start.log