diff --git a/.github/workflows/default.yml b/.github/workflows/default.yml index 68817582..f9ab6982 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 77912565..f16c34e8 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 cda633c5..21819acc 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