Skip to content

Commit b1bbd4f

Browse files
authored
ci(workflows): include matrices in concurrency groups (#2715)
1 parent f7c09bd commit b1bbd4f

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

.github/workflows/ci.yml

+12-4
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@ on:
66
branches: [master]
77
workflow_dispatch:
88

9-
concurrency:
10-
group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }}
11-
cancel-in-progress: true
12-
139
permissions:
1410
contents: read
1511

1612
jobs:
1713
lint:
1814
runs-on: ubuntu-latest
1915

16+
concurrency:
17+
group: ${{ github.workflow }}-${{ matrix.lua_version }}-${{ github.head_ref || github.ref_name }}
18+
cancel-in-progress: true
19+
2020
strategy:
2121
matrix:
2222
lua_version: [ 5.1 ]
@@ -37,6 +37,10 @@ jobs:
3737
style:
3838
runs-on: ubuntu-latest
3939

40+
concurrency:
41+
group: ${{ github.workflow }}-${{ matrix.stylua_version }}-${{ github.head_ref || github.ref_name }}
42+
cancel-in-progress: true
43+
4044
strategy:
4145
matrix:
4246
stylua_version: [ 0.19.1 ]
@@ -56,6 +60,10 @@ jobs:
5660
check:
5761
runs-on: ubuntu-latest
5862

63+
concurrency:
64+
group: ${{ github.workflow }}-${{ matrix.nvim_version }}-${{ matrix.luals_version }}-${{ github.head_ref || github.ref_name }}
65+
cancel-in-progress: true
66+
5967
strategy:
6068
matrix:
6169
nvim_version: [ stable, nightly ]

0 commit comments

Comments
 (0)