From 861af5e38bd6391a4331edc77855f44508bf5431 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ho=C3=A0ng=20Rio?= Date: Tue, 18 Jun 2024 08:15:15 +0700 Subject: [PATCH] Add action concurrency by commit id for build and lint --- .github/workflows/build.yml | 6 +++++- .github/workflows/lint.yml | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 749ee88aa57..4c3188ef6f5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,7 +2,7 @@ 'env': 'GO_VERSION': '1.22.4' - 'NODE_VERSION': '16' + 'NODE_VERSION': '18.18.0' 'on': 'push': @@ -12,6 +12,10 @@ - 'v*' 'pull_request': +'concurrency': + 'group': ${{ github.event.head_commit.id }} + 'cancel-in-progress': true + 'jobs': 'test': 'runs-on': '${{ matrix.os }}' diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 89d2fada183..c4dca55e72a 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,6 +11,10 @@ - '*' 'pull_request': +'concurrency': + 'group': ${{ github.event.head_commit.id }} + 'cancel-in-progress': true + 'jobs': 'go-lint': 'runs-on': 'ubuntu-latest'