ci: Port CI test from Travis to Github Actions (#24846)

This commit is contained in:
Mohammad Hasnain Mohsin Rajan
2021-03-12 14:09:52 +05:30
committed by GitHub
parent b5792872e9
commit 0f60f08f3e
5 changed files with 152 additions and 69 deletions

14
.github/helper/run_tests.sh vendored Normal file
View File

@@ -0,0 +1,14 @@
#!/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