2022-12-15 11:20:19 +00:00
|
|
|
name: "Easy Install Test"
|
2022-12-14 12:12:24 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
workflow_dispatch:
|
|
|
|
push:
|
2022-12-15 11:20:19 +00:00
|
|
|
branches: [develop]
|
|
|
|
|
|
|
|
concurrency:
|
|
|
|
group: easy-install-develop-${{ github.event_name }}-${{ github.event.number }}
|
|
|
|
cancel-in-progress: true
|
2022-12-14 12:12:24 +00:00
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
easy-install-setup:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
timeout-minutes: 60
|
|
|
|
|
|
|
|
name: Easy Install Test
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
2023-03-01 05:06:50 +00:00
|
|
|
|
|
|
|
- uses: actions/setup-python@v4
|
|
|
|
with:
|
|
|
|
python-version: '3.8'
|
|
|
|
|
2022-12-15 11:20:19 +00:00
|
|
|
- name: Perform production easy install
|
|
|
|
run: |
|
2024-10-27 10:43:32 +00:00
|
|
|
python3 ${GITHUB_WORKSPACE}/easy-install.py build
|
|
|
|
python3 ${GITHUB_WORKSPACE}/easy-install.py -p -n actions_test --email test@frappe.io --image custom-apps --version latest
|
2022-12-14 12:12:24 +00:00
|
|
|
docker compose -p actions_test exec backend bench version --format json
|
2023-02-27 05:28:33 +00:00
|
|
|
docker compose -p actions_test exec backend bench --site site1.localhost list-apps --format json
|
|
|
|
result=$(curl -H "Host: site1.localhost" -sk https://127.0.0.1/api/method/ping | jq -r ."message")
|
2022-12-14 12:12:24 +00:00
|
|
|
if [[ "$result" == "pong" ]]; then echo "New instance works fine"; else exit 1; fi
|
|
|
|
docker compose -p actions_test down
|
2022-12-15 11:20:19 +00:00
|
|
|
docker volume prune -f
|