18 lines
390 B
Bash
18 lines
390 B
Bash
#!/bin/bash
|
|
set -e
|
|
cd ~ || exit
|
|
|
|
echo "::group::Install Bench"
|
|
pip install frappe-bench
|
|
echo "::endgroup::"
|
|
|
|
echo "::group::Init Bench"
|
|
bench -v init frappe-bench --skip-assets --python "$(which python)" --frappe-path "${GITHUB_WORKSPACE}"
|
|
cd ./frappe-bench || exit
|
|
|
|
bench -v setup requirements --dev
|
|
if [ "$TYPE" == "ui" ]
|
|
then
|
|
bench -v setup requirements --node;
|
|
fi
|
|
echo "::endgroup::"
|