Skip to content

Commit 7f16641

Browse files
committed
CI: add concurrency group to E2E workflow to cancel redundant runs
When spr force-pushes all stack branches at once, each branch triggers a new E2E run while the previous one is still queued. The concurrency group (keyed on branch ref) cancels the stale run, cutting the number of concurrent E2E jobs roughly in half. commit-id:1a8eb714
1 parent e15037c commit 7f16641

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

.github/workflows/cypress-tests.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ on:
99
- stable
1010
- 'jc/**'
1111

12+
concurrency:
13+
group: e2e-${{ github.ref }}
14+
cancel-in-progress: true
15+
1216
jobs:
1317
cypress-run:
1418
runs-on: ubuntu-latest

.spr.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
githubRepoOwner: compdemocracy
2+
githubRepoName: polis
3+
githubHost: github.com
4+
githubRemote: origin
5+
githubBranch: edge
6+
requireChecks: true
7+
requireApproval: true
8+
defaultReviewers: []
9+
mergeMethod: squash
10+
mergeQueue: false
11+
prTemplateType: stack
12+
forceFetchTags: false
13+
showPrTitlesInStack: false
14+
branchPushIndividually: false

0 commit comments

Comments
 (0)