Skip to content

Commit

Permalink
ci: add concurrency flag for CI workflows (#448)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcalexiei authored Jan 28, 2025
1 parent c0aa707 commit bd34c19
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/docker-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ on:
- 'main'
pull_request:

concurrency:
group: '${{ github.workflow }}-${{ github.head_ref || github.ref }}'
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

jobs:
build_and_test:
name: Build and Test Docker Image on ${{ matrix.os }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ on:
- '!Cargo.toml'
- 'apps/documentation/**'

concurrency:
group: '${{ github.workflow }}-${{ github.head_ref || github.ref }}'
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

jobs:
build:
name: Check build
Expand Down
File renamed without changes.
4 changes: 4 additions & 0 deletions .github/workflows/repo-root-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ on:
- 'main'
pull_request:

concurrency:
group: '${{ github.workflow }}-${{ github.head_ref || github.ref }}'
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

jobs:
format:
name: Check format
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/rust.yml → .github/workflows/rust-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
- 'main'
pull_request:

concurrency:
group: '${{ github.workflow }}-${{ github.head_ref || github.ref }}'
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

env:
CARGO_TERM_COLOR: always

Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/spell-checking.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:

pull_request:

concurrency:
group: '${{ github.workflow }}-${{ github.head_ref || github.ref }}'
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

jobs:
spell_checking:
name: LanguageTool
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
- 'main'
pull_request:

concurrency:
group: '${{ github.workflow }}-${{ github.head_ref || github.ref }}'
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

jobs:
build_and_test:
name: Check build and test
Expand Down

0 comments on commit bd34c19

Please sign in to comment.