From dc6f2741909543e910fd3483cd0077b7bbeebc39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Pupier?= Date: Mon, 8 Jun 2026 15:51:08 +0200 Subject: [PATCH] Configure GitHub workflows to use concurrency cancel-in-progress for pull requests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit see recommended best practices at Apache https://cwiki.apache.org/confluence/pages/viewpage.action?spaceKey=INFRA&title=GitHub+Actions+Recommended+Practices Signed-off-by: Aurélien Pupier --- .github/workflows/default.yml | 4 ++++ .github/workflows/golangci-lint.yml | 4 ++++ .github/workflows/performance-pr.yml | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/.github/workflows/default.yml b/.github/workflows/default.yml index 68817582a..f9ab6982f 100644 --- a/.github/workflows/default.yml +++ b/.github/workflows/default.yml @@ -6,6 +6,10 @@ on: - master pull_request: +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + jobs: test: runs-on: ubuntu-latest diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 77912565b..f16c34e8c 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -7,6 +7,10 @@ on: - main pull_request: +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + jobs: golangci: runs-on: ubuntu-latest diff --git a/.github/workflows/performance-pr.yml b/.github/workflows/performance-pr.yml index cda633c5f..21819acc7 100644 --- a/.github/workflows/performance-pr.yml +++ b/.github/workflows/performance-pr.yml @@ -4,6 +4,10 @@ on: pull_request: branches: [master] +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + jobs: benchmark-pr: name: Performance benchmark comparison