forked from frappe/bench
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: added reading from env when rerunning script - Makes current site as default
- Loading branch information
Showing
2 changed files
with
42 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: 'Easy Install Test' | ||
|
||
on: | ||
pull_request: | ||
workflow_dispatch: | ||
push: | ||
branches: [ develop ] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
easy-install-setup: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 60 | ||
|
||
name: Easy Install Test | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- run: | | ||
python3 ${GITHUB_WORKSPACE}/easy-install.py -p -n actions_test --email test@frappe.io | ||
docker compose -p actions_test exec backend bench version --format json | ||
docker compose -p actions_test exec backend bench --site site1.local list-apps --format json | ||
result=$(curl -sk https://127.0.0.1/api/method/ping | jq -r ."message") | ||
if [[ "$result" == "pong" ]]; then echo "New instance works fine"; else exit 1; fi | ||
docker compose -p actions_test down | ||
docker volume prune -f |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters