ci: concurrency control for CI jobs (#27230)

similar to https://github.com/frappe/frappe/pull/14061

This will ensure that only one instance of the following tests run per
PR and cancel previous running/queued jobs when new commits are pushed.

- Server / unit tests
- UI tests
- Patch test
This commit is contained in:
Ankush Menat 2021-08-30 14:07:13 +05:30 committed by GitHub
parent 7d2a0fe38e
commit 9de0f7538f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 0 deletions

View File

@ -7,6 +7,9 @@ on:
- '**.md' - '**.md'
workflow_dispatch: workflow_dispatch:
concurrency:
group: patch-develop-${{ github.event.number }}
cancel-in-progress: true
jobs: jobs:
test: test:

View File

@ -12,6 +12,10 @@ on:
- '**.js' - '**.js'
- '**.md' - '**.md'
concurrency:
group: server-develop-${{ github.event.number }}
cancel-in-progress: true
jobs: jobs:
test: test:
runs-on: ubuntu-18.04 runs-on: ubuntu-18.04

View File

@ -6,6 +6,10 @@ on:
- '**.md' - '**.md'
workflow_dispatch: workflow_dispatch:
concurrency:
group: ui-develop-${{ github.event.number }}
cancel-in-progress: true
jobs: jobs:
test: test:
runs-on: ubuntu-18.04 runs-on: ubuntu-18.04