Skip to content

Commit

Permalink
feat: Added concurrency option to github workflows (#7205)
Browse files Browse the repository at this point in the history
  • Loading branch information
marksweb committed Jan 25, 2022
1 parent c18a538 commit 546b368
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/docs.yml
Expand Up @@ -2,6 +2,10 @@ name: Docs

on: [push, pull_request]

concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
docs:
runs-on: ubuntu-latest
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/frontend.yml
Expand Up @@ -2,6 +2,11 @@ name: django CMS frontend.yml

on: [push, pull_request]

concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true


jobs:
frontend:
runs-on: ubuntu-20.04
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/linters.yml
Expand Up @@ -2,6 +2,11 @@ name: django CMS linters.yml

on: [push, pull_request]

concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true


jobs:
flake8:
name: flake8
Expand All @@ -21,7 +26,6 @@ jobs:
linters: flake8
run: flake8


isort:
runs-on: ubuntu-latest
steps:
Expand All @@ -38,4 +42,3 @@ jobs:
with:
linters: isort
run: isort --check --diff cms

4 changes: 4 additions & 0 deletions .github/workflows/test.yml
Expand Up @@ -2,6 +2,10 @@ name: django CMS test.yml

on: [push, pull_request]

concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
database-postgres:
runs-on: ${{ matrix.os }}
Expand Down

0 comments on commit 546b368

Please sign in to comment.