Skip to content

Commit

Permalink
ci(workflows): include matrices in concurrency groups (#2715)
Browse files Browse the repository at this point in the history
  • Loading branch information
gegoune authored Mar 24, 2024
1 parent f7c09bd commit b1bbd4f
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@ on:
branches: [master]
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }}
cancel-in-progress: true

permissions:
contents: read

jobs:
lint:
runs-on: ubuntu-latest

concurrency:
group: ${{ github.workflow }}-${{ matrix.lua_version }}-${{ github.head_ref || github.ref_name }}
cancel-in-progress: true

strategy:
matrix:
lua_version: [ 5.1 ]
Expand All @@ -37,6 +37,10 @@ jobs:
style:
runs-on: ubuntu-latest

concurrency:
group: ${{ github.workflow }}-${{ matrix.stylua_version }}-${{ github.head_ref || github.ref_name }}
cancel-in-progress: true

strategy:
matrix:
stylua_version: [ 0.19.1 ]
Expand All @@ -56,6 +60,10 @@ jobs:
check:
runs-on: ubuntu-latest

concurrency:
group: ${{ github.workflow }}-${{ matrix.nvim_version }}-${{ matrix.luals_version }}-${{ github.head_ref || github.ref_name }}
cancel-in-progress: true

strategy:
matrix:
nvim_version: [ stable, nightly ]
Expand Down

0 comments on commit b1bbd4f

Please sign in to comment.