2
0
mirror of https://github.com/frappe/bench.git synced 2025-02-09 22:28:26 +00:00

ci: add concurrency group

This commit is contained in:
Ankush Menat 2022-12-15 16:50:19 +05:30
parent e76c7dccf5
commit 687044f123
2 changed files with 13 additions and 4 deletions

View File

@ -6,6 +6,10 @@ on:
push:
branches: [ develop ]
concurrency:
group: ci-develop-${{ github.event_name }}-${{ github.event.number }}
cancel-in-progress: true
permissions:
contents: read

View File

@ -1,10 +1,14 @@
name: 'Easy Install Test'
name: "Easy Install Test"
on:
pull_request:
workflow_dispatch:
push:
branches: [ develop ]
branches: [develop]
concurrency:
group: easy-install-develop-${{ github.event_name }}-${{ github.event.number }}
cancel-in-progress: true
permissions:
contents: read
@ -17,11 +21,12 @@ jobs:
name: Easy Install Test
steps:
- uses: actions/checkout@v3
- run: |
- name: Perform production easy install
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
docker volume prune -f