Skip to content

Commit

Permalink
Configure concurrency for all CI. (#106) (valkey-io#1030)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yury-Fridlyand authored and cyip10 committed Jun 24, 2024
1 parent 172f18e commit bef40fd
Show file tree
Hide file tree
Showing 9 changed files with 38 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/csharp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ on:
permissions:
contents: read

concurrency:
group: C#-${{ github.head_ref || github.ref }}
cancel-in-progress: true

jobs:
run-tests:
timeout-minutes: 15
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ on:
- go/**
- .github/workflows/go.yml

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


jobs:
build-and-test-go-client:
timeout-minutes: 20
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ on:
- .github/workflows/test-benchmark/action.yml
- .github/workflows/lint-rust/action.yml

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

jobs:
build-and-test-java-client:
timeout-minutes: 25
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/lint-ts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ on:
- benchmarks/utilities/*
- .github/workflows/lint-ts.yml

concurrency:
group: node-lint-${{ github.head_ref || github.ref }}
cancel-in-progress: true

env:
CARGO_TERM_COLOR: always

Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ on:
- .github/workflows/build-node-wrapper/action.yml
- .github/workflows/install-shared-dependencies/action.yml

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

env:
CARGO_TERM_COLOR: always

Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/npm-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ on:
push:
tags:
- "v*.*"

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

jobs:
publish-binaries:
if: github.repository_owner == 'aws'
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/pypi-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ on:
push:
tags:
- "v*.*"

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

jobs:
publish-binaries:
if: github.repository_owner == 'aws'
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ on:
- .github/workflows/install-shared-dependencies/action.yml
- .github/workflows/install-redis-modules/action.yml

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

permissions:
contents: read
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ on:
- utils/cluster_manager.py
- .github/workflows/rust.yml

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

env:
CARGO_TERM_COLOR: always

Expand Down

0 comments on commit bef40fd

Please sign in to comment.