From 76493e928fbb9ec04e987e401649a62668e7011c Mon Sep 17 00:00:00 2001 From: phot0n Date: Mon, 25 Jul 2022 10:56:04 +0530 Subject: [PATCH] ci: update install script and patch workflow to accomodate payments app --- .github/helper/install.sh | 1 + .github/workflows/patch.yml | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/helper/install.sh b/.github/helper/install.sh index f0f83b061b..a62df32f2d 100644 --- a/.github/helper/install.sh +++ b/.github/helper/install.sh @@ -63,6 +63,7 @@ sed -i 's/schedule:/# schedule:/g' Procfile sed -i 's/socketio:/# socketio:/g' Procfile sed -i 's/redis_socketio:/# redis_socketio:/g' Procfile +bench get-app payments bench get-app erpnext "${GITHUB_WORKSPACE}" if [ "$TYPE" == "server" ]; then bench setup requirements --dev; fi diff --git a/.github/workflows/patch.yml b/.github/workflows/patch.yml index a71db7289a..eedb4b4ca9 100644 --- a/.github/workflows/patch.yml +++ b/.github/workflows/patch.yml @@ -105,7 +105,6 @@ jobs: echo "Updating to v$version" branch_name="version-$version-hotfix" - git -C "apps/frappe" fetch --depth 1 upstream $branch_name:$branch_name git -C "apps/erpnext" fetch --depth 1 upstream $branch_name:$branch_name @@ -114,6 +113,7 @@ jobs: rm -rf ~/frappe-bench/env bench setup env + bench pip install -e ./apps/payments bench pip install -e ./apps/erpnext bench --site test_site migrate @@ -127,6 +127,8 @@ jobs: pyenv global $(pyenv versions | grep '3.10') rm -rf ~/frappe-bench/env bench -v setup env + bench pip install -e ./apps/payments bench pip install -e ./apps/erpnext bench --site test_site migrate + bench --site test_site install-app payments