Skip to content

Commit aa7d323

Browse files
authored
ci: add concurrency (#1667)
* ci: add concurrency * clean up extra comment newlines (also testing that a new commit cancels in-progress runs)
1 parent 4d087b4 commit aa7d323

15 files changed

+59
-5
lines changed

.github/workflows/block-build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ defaults:
1313
run:
1414
working-directory: packages/block
1515

16+
concurrency:
17+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
18+
cancel-in-progress: true
19+
1620
jobs:
1721
test-block:
1822
runs-on: ubuntu-latest

.github/workflows/blockchain-build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ defaults:
1313
run:
1414
working-directory: packages/blockchain
1515

16+
concurrency:
17+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
18+
cancel-in-progress: true
19+
1620
jobs:
1721
test-blockchain:
1822
runs-on: ubuntu-latest

.github/workflows/client-build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ defaults:
1313
run:
1414
working-directory: packages/client
1515

16+
concurrency:
17+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
18+
cancel-in-progress: true
19+
1620
jobs:
1721
test-client:
1822
runs-on: ubuntu-latest

.github/workflows/common-build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ defaults:
1313
run:
1414
working-directory: packages/common
1515

16+
concurrency:
17+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
18+
cancel-in-progress: true
19+
1620
jobs:
1721
test-common:
1822
runs-on: ubuntu-latest

.github/workflows/devp2p-build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ defaults:
1313
run:
1414
working-directory: packages/devp2p
1515

16+
concurrency:
17+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
18+
cancel-in-progress: true
19+
1620
jobs:
1721
test-devp2p:
1822
runs-on: ubuntu-latest

.github/workflows/e2e-hardhat.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ on:
99
env:
1010
cwd: ${{github.workspace}}
1111

12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
14+
cancel-in-progress: true
15+
1216
jobs:
1317
e2e-hardhat:
1418
runs-on: ubuntu-latest

.github/workflows/ethash-build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ defaults:
1313
run:
1414
working-directory: packages/ethash
1515

16+
concurrency:
17+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
18+
cancel-in-progress: true
19+
1620
jobs:
1721
test-ethash:
1822
runs-on: ubuntu-latest

.github/workflows/examples.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,14 @@ name: Packages examples
22
on:
33
push:
44
branches: [master, develop]
5+
tags: ['*']
56
pull_request:
67
types: [opened, reopened, synchronize]
78

9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
11+
cancel-in-progress: true
12+
813
jobs:
914
test-examples:
1015
runs-on: ubuntu-latest

.github/workflows/node-versions.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1-
#
21
# This special file aims to run node tests for each relevant node version.
32
# A relevant node version can be: active, current, maintenance or EOL with some months of tolerance
43
# For more details, please check ./scripts/node-versions.js
5-
#
6-
74
name: Node versions
85
on:
96
schedule:

.github/workflows/rlp-build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ defaults:
1515
run:
1616
working-directory: packages/rlp
1717

18+
concurrency:
19+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
20+
cancel-in-progress: true
21+
1822
jobs:
1923
test-rlp:
2024
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)