fix: Github Action not failing when tests fail (#24867)

Co-authored-by: Sagar Vora <sagar@resilient.tech>
This commit is contained in:
Mohammad Hasnain Mohsin Rajan
2021-03-15 11:17:19 +05:30
committed by GitHub
parent ed42afc5e8
commit 46d5431bad
4 changed files with 11 additions and 19 deletions

View File

@@ -1,10 +1,14 @@
#!/bin/bash
set -e
cd ~ || exit
sudo apt-get install redis-server
nvm install 10
sudo apt install nodejs
sudo apt install npm
pip install frappe-bench

View File

@@ -1,14 +0,0 @@
#!/bin/bash
cd ~/frappe-bench/ || exit
if [ "$TYPE" == "server" ]; then
bench --site test_site run-tests --app erpnext --coverage
fi
if [ "$TYPE" == "patch" ]; then
wget http://build.erpnext.com/20171108_190013_955977f8_database.sql.gz
bench --site test_site --force restore ~/frappe-bench/20171108_190013_955977f8_database.sql.gz
bench --site test_site migrate
fi