Added concurrency section to workflows to prevent more than one job per PR from running at a time

This commit is contained in:
Zach Musgrave
2022-06-08 13:13:02 -07:00
parent 9f247c33d3
commit 25547377d9
7 changed files with 28 additions and 0 deletions
+4
View File
@@ -7,6 +7,10 @@ on:
- 'go/**'
- 'integration-tests/**'
concurrency:
group: build-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
test:
name: Bats tests
+4
View File
@@ -4,6 +4,10 @@ on:
pull_request:
branches: [ main ]
concurrency:
group: build-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
verify:
name: Verify format and committers
@@ -7,6 +7,10 @@ on:
- 'go/**'
- 'integration-tests/**'
concurrency:
group: build-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
test:
name: Compatibility Test
@@ -6,6 +6,10 @@ on:
- 'go/**'
- 'integration-tests/**'
concurrency:
group: build-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
data_dump_laoding_integrations_job:
runs-on: ubuntu-18.04
@@ -7,6 +7,10 @@ on:
- 'go/**'
workflow_dispatch:
concurrency:
group: build-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
test:
name: Go tests (new format)
+4
View File
@@ -7,6 +7,10 @@ on:
- 'go/**'
workflow_dispatch:
concurrency:
group: build-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
test:
name: Go tests
@@ -6,6 +6,10 @@ on:
- 'go/**'
- 'integration-tests/**'
concurrency:
group: build-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
mysql_client_integrations_job:
runs-on: ubuntu-18.04