Skip to content

Commit

Permalink
ci: concurrency control for CI jobs (frappe#27230)
Browse files Browse the repository at this point in the history
similar to frappe/frappe#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
  • Loading branch information
ankush authored and ahmadpak committed Aug 30, 2021
1 parent 489574d commit f9a7691
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/patch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
- '**.md'
workflow_dispatch:

concurrency:
group: patch-develop-${{ github.event.number }}
cancel-in-progress: true

jobs:
test:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/server-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ on:
- '**.js'
- '**.md'

concurrency:
group: server-develop-${{ github.event.number }}
cancel-in-progress: true

jobs:
test:
runs-on: ubuntu-18.04
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/ui-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
- '**.md'
workflow_dispatch:

concurrency:
group: ui-develop-${{ github.event.number }}
cancel-in-progress: true

jobs:
test:
runs-on: ubuntu-18.04
Expand Down

0 comments on commit f9a7691

Please sign in to comment.