2
0
mirror of https://github.com/frappe/bench.git synced 2024-11-15 09:44:07 +00:00
bench/.github/workflows/easy-install.yml
Athul Cyriac Ajay e76c7dccf5 feat: add GHA tests
chore: added reading from env when rerunning script
- Makes current site as default
2022-12-14 17:42:24 +05:30

27 lines
836 B
YAML

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