Skip to content

Commit d9e36f7

Browse files
committed
fix: concurrency settings in Playwright workflow
1 parent c2a10bb commit d9e36f7

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/playwright.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,12 @@ permissions:
1919
pull-requests: write
2020
actions: read
2121

22-
concurrency:
23-
group: playwright-${{ github.event_name }}-${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.ref }}-${{ (github.event_name != 'pull_request' || (contains(github.event.pull_request.labels.*.name, 'run-tests') && (github.event.action != 'labeled' || github.event.label.name == 'run-tests' || github.event.label.name == 'multisite'))) && 'tests' || 'noop' }}
24-
cancel-in-progress: ${{ github.event_name == 'pull_request' && (contains(github.event.pull_request.labels.*.name, 'run-tests') && (github.event.action != 'labeled' || github.event.label.name == 'run-tests' || github.event.label.name == 'multisite')) }}
25-
2622
jobs:
2723
playwright-default:
2824
if: github.event_name != 'pull_request' || (contains(github.event.pull_request.labels.*.name, 'run-tests') && (github.event.action != 'labeled' || github.event.label.name == 'run-tests' || github.event.label.name == 'multisite'))
25+
concurrency:
26+
group: playwright-${{ github.event_name }}-${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.ref }}-${{ github.job }}
27+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
2928
uses: ./.github/workflows/playwright-test.yml
3029
with:
3130
test-mode: 'default'
@@ -34,6 +33,9 @@ jobs:
3433

3534
playwright-file-based-execution:
3635
if: github.event_name != 'pull_request' || (contains(github.event.pull_request.labels.*.name, 'run-tests') && (github.event.action != 'labeled' || github.event.label.name == 'run-tests' || github.event.label.name == 'multisite'))
36+
concurrency:
37+
group: playwright-${{ github.event_name }}-${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.ref }}-${{ github.job }}
38+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
3739
uses: ./.github/workflows/playwright-test.yml
3840
with:
3941
test-mode: 'file-based-execution'

0 commit comments

Comments
 (0)