mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-13 02:01:21 +00:00
fix: Github Action not failing when tests fail (#24867)
Co-authored-by: Sagar Vora <sagar@resilient.tech>
This commit is contained in:
committed by
GitHub
parent
ed42afc5e8
commit
46d5431bad
6
.github/helper/install.sh
vendored
6
.github/helper/install.sh
vendored
@@ -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
|
||||
|
||||
|
||||
14
.github/helper/run_tests.sh
vendored
14
.github/helper/run_tests.sh
vendored
@@ -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
|
||||
Reference in New Issue
Block a user