From 8d5a87816a33280cad204d1a74495d6b1d8b572a Mon Sep 17 00:00:00 2001 From: Sachin Kumar Date: Sun, 23 Apr 2023 07:53:39 +0530 Subject: [PATCH] ci: use concurrency in github workflows --- .github/workflows/nodejs.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 9da8dce..f8441cf 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -24,6 +24,10 @@ jobs: runs-on: ${{ matrix.os }} + concurrency: + group: lint-${{ matrix.os }}-v${{ matrix.node-version }}-${{ github.ref }} + cancel-in-progress: true + steps: - uses: actions/checkout@v3 with: @@ -60,6 +64,10 @@ jobs: runs-on: ${{ matrix.os }} + concurrency: + group: test-${{ matrix.os }}-v${{ matrix.node-version }}-${{ matrix.webpack-version }}-${{ github.ref }} + cancel-in-progress: true + steps: - name: Setup Git if: matrix.os == 'windows-latest'