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:
parent
e76c7dccf5
commit
687044f123
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@ -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
|
||||
|
||||
|
13
.github/workflows/easy-install.yml
vendored
13
.github/workflows/easy-install.yml
vendored
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user