diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 54a61d28a37..ae3c326a63d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,10 +6,6 @@ on: branches: [master] workflow_dispatch: -concurrency: - group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }} - cancel-in-progress: true - permissions: contents: read @@ -17,6 +13,10 @@ 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 ] @@ -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 ] @@ -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 ]