ci(workflows): include matrices in concurrency groups (#2715)

This commit is contained in:
gegoune 2024-03-24 03:44:16 +02:00 committed by GitHub
parent f7c09bd72e
commit b1bbd4f7dc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -6,10 +6,6 @@ on:
branches: [master] branches: [master]
workflow_dispatch: workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }}
cancel-in-progress: true
permissions: permissions:
contents: read contents: read
@ -17,6 +13,10 @@ jobs:
lint: lint:
runs-on: ubuntu-latest runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ matrix.lua_version }}-${{ github.head_ref || github.ref_name }}
cancel-in-progress: true
strategy: strategy:
matrix: matrix:
lua_version: [ 5.1 ] lua_version: [ 5.1 ]
@ -37,6 +37,10 @@ jobs:
style: style:
runs-on: ubuntu-latest runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ matrix.stylua_version }}-${{ github.head_ref || github.ref_name }}
cancel-in-progress: true
strategy: strategy:
matrix: matrix:
stylua_version: [ 0.19.1 ] stylua_version: [ 0.19.1 ]
@ -56,6 +60,10 @@ jobs:
check: check:
runs-on: ubuntu-latest 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: strategy:
matrix: matrix:
nvim_version: [ stable, nightly ] nvim_version: [ stable, nightly ]