Skip to content

Commit

Permalink
[CHORE] Cancel test runs on update to the same ref.
Browse files Browse the repository at this point in the history
  • Loading branch information
rescrv committed Dec 13, 2024
1 parent 5a61a95 commit 5587cae
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/_go-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: Go tests
on:
workflow_call:

concurrency:
cancel-in-progress: true

jobs:
test:
strategy:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/_javascript-client-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: JavaScript client tests
on:
workflow_call:

concurrency:
cancel-in-progress: true

jobs:
test:
runs-on: depot-ubuntu-22.04
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/_python-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ on:
required: true
type: string

concurrency:
cancel-in-progress: true

jobs:
test:
timeout-minutes: 90
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/_rust-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: Rust tests
on:
workflow_call:

concurrency:
cancel-in-progress: true

jobs:
test:
strategy:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
- main
- '**'

concurrency:
cancel-in-progress: true

jobs:
# GitHub only provides a way to do path filtering at the workflow level rather than the job level.
# This allows us to selectively run jobs based on changed paths.
Expand Down

0 comments on commit 5587cae

Please sign in to comment.