From b075ca941f82140e8e79367e320411b67f48120e Mon Sep 17 00:00:00 2001 From: Martin Tzvetanov Grigorov Date: Thu, 3 Mar 2022 14:12:55 +0200 Subject: [PATCH] AVRO-3431: CI: Cancel in-progress workflows if there are new commits in PR Signed-off-by: Martin Tzvetanov Grigorov --- .github/workflows/codeql-csharp-analysis.yml | 4 ++++ .github/workflows/codeql-java-analysis.yml | 4 ++++ .github/workflows/codeql-js-analysis.yml | 4 ++++ .github/workflows/codeql-py-analysis.yml | 4 ++++ .github/workflows/java-publish-snapshot.yml | 4 ++++ .github/workflows/rat.yml | 4 ++++ .github/workflows/spotless.yml | 4 ++++ .github/workflows/test-lang-c++.yml | 4 ++++ .github/workflows/test-lang-c.yml | 4 ++++ .github/workflows/test-lang-csharp.yml | 4 ++++ .github/workflows/test-lang-java.yml | 4 ++++ .github/workflows/test-lang-js.yml | 4 ++++ .github/workflows/test-lang-perl.yml | 4 ++++ .github/workflows/test-lang-php.yml | 4 ++++ .github/workflows/test-lang-py.yml | 4 ++++ .github/workflows/test-lang-ruby.yml | 4 ++++ .github/workflows/test-lang-rust-audit.yml | 4 ++++ .github/workflows/test-lang-rust-ci.yml | 4 ++++ .github/workflows/test-lang-rust-clippy.yml | 4 ++++ .github/workflows/test-lang-rust-miri.yml | 4 ++++ 20 files changed, 80 insertions(+) diff --git a/.github/workflows/codeql-csharp-analysis.yml b/.github/workflows/codeql-csharp-analysis.yml index f76d392617a..48af1be55c1 100644 --- a/.github/workflows/codeql-csharp-analysis.yml +++ b/.github/workflows/codeql-csharp-analysis.yml @@ -32,6 +32,10 @@ on: - .github/workflows/codeql-csharp-analysis.yml - lang/csharp/** +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: analyze: name: Analyze diff --git a/.github/workflows/codeql-java-analysis.yml b/.github/workflows/codeql-java-analysis.yml index 1b4933fcf60..c42c627a0cd 100644 --- a/.github/workflows/codeql-java-analysis.yml +++ b/.github/workflows/codeql-java-analysis.yml @@ -32,6 +32,10 @@ on: - lang/java/** - pom.xml +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: analyze: name: Analyze diff --git a/.github/workflows/codeql-js-analysis.yml b/.github/workflows/codeql-js-analysis.yml index 58d2a0a6296..21af5443bb0 100644 --- a/.github/workflows/codeql-js-analysis.yml +++ b/.github/workflows/codeql-js-analysis.yml @@ -32,6 +32,10 @@ on: - .github/workflows/codeql-js-analysis.yml - lang/js/** +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: analyze: name: Analyze diff --git a/.github/workflows/codeql-py-analysis.yml b/.github/workflows/codeql-py-analysis.yml index 048b2ed1a9b..95f986ae7ea 100644 --- a/.github/workflows/codeql-py-analysis.yml +++ b/.github/workflows/codeql-py-analysis.yml @@ -32,6 +32,10 @@ on: - .github/workflows/codeql-py-analysis.yml - lang/py/** +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: analyze: name: Analyze diff --git a/.github/workflows/java-publish-snapshot.yml b/.github/workflows/java-publish-snapshot.yml index 3bb2f9a86ff..841a4ea53b4 100644 --- a/.github/workflows/java-publish-snapshot.yml +++ b/.github/workflows/java-publish-snapshot.yml @@ -25,6 +25,10 @@ on: - lang/java/** - pom.xml +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + defaults: run: working-directory: lang/java diff --git a/.github/workflows/rat.yml b/.github/workflows/rat.yml index d3fa1868a46..97c59e88259 100644 --- a/.github/workflows/rat.yml +++ b/.github/workflows/rat.yml @@ -21,6 +21,10 @@ on: pull_request: branches: [ master ] +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: rat: runs-on: ubuntu-latest diff --git a/.github/workflows/spotless.yml b/.github/workflows/spotless.yml index 45c7e9de4d7..37b40e903b3 100644 --- a/.github/workflows/spotless.yml +++ b/.github/workflows/spotless.yml @@ -24,6 +24,10 @@ on: - .github/workflows/spotless.yml - lang/java/** +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: spotless: runs-on: ubuntu-latest diff --git a/.github/workflows/test-lang-c++.yml b/.github/workflows/test-lang-c++.yml index 41023ac482d..716d64c0228 100644 --- a/.github/workflows/test-lang-c++.yml +++ b/.github/workflows/test-lang-c++.yml @@ -28,6 +28,10 @@ defaults: run: working-directory: lang/c++ +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: test: runs-on: ubuntu-latest diff --git a/.github/workflows/test-lang-c.yml b/.github/workflows/test-lang-c.yml index 764a29364d6..614728ede1e 100644 --- a/.github/workflows/test-lang-c.yml +++ b/.github/workflows/test-lang-c.yml @@ -28,6 +28,10 @@ defaults: run: working-directory: lang/c +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: test: runs-on: ubuntu-latest diff --git a/.github/workflows/test-lang-csharp.yml b/.github/workflows/test-lang-csharp.yml index 29c812edaec..0492335f18e 100644 --- a/.github/workflows/test-lang-csharp.yml +++ b/.github/workflows/test-lang-csharp.yml @@ -28,6 +28,10 @@ defaults: run: working-directory: lang/csharp +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: test: runs-on: ubuntu-latest diff --git a/.github/workflows/test-lang-java.yml b/.github/workflows/test-lang-java.yml index 0daa77c8127..ef384a6e42d 100644 --- a/.github/workflows/test-lang-java.yml +++ b/.github/workflows/test-lang-java.yml @@ -29,6 +29,10 @@ defaults: run: working-directory: lang/java +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: test: name: Java ${{ matrix.java }} Test diff --git a/.github/workflows/test-lang-js.yml b/.github/workflows/test-lang-js.yml index ed88332b58d..5efb677b710 100644 --- a/.github/workflows/test-lang-js.yml +++ b/.github/workflows/test-lang-js.yml @@ -28,6 +28,10 @@ defaults: run: working-directory: lang/js +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: test: name: Node ${{ matrix.node }} diff --git a/.github/workflows/test-lang-perl.yml b/.github/workflows/test-lang-perl.yml index a73533c0eee..f5243340516 100644 --- a/.github/workflows/test-lang-perl.yml +++ b/.github/workflows/test-lang-perl.yml @@ -28,6 +28,10 @@ defaults: run: working-directory: lang/perl +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: test: name: Perl ${{ matrix.perl }} Tests diff --git a/.github/workflows/test-lang-php.yml b/.github/workflows/test-lang-php.yml index 15e6619f592..1839a464e8f 100644 --- a/.github/workflows/test-lang-php.yml +++ b/.github/workflows/test-lang-php.yml @@ -28,6 +28,10 @@ defaults: run: working-directory: lang/php +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: test: name: PHP ${{ matrix.php }} Test diff --git a/.github/workflows/test-lang-py.yml b/.github/workflows/test-lang-py.yml index b8f9800d3cd..01fe90a791c 100644 --- a/.github/workflows/test-lang-py.yml +++ b/.github/workflows/test-lang-py.yml @@ -28,6 +28,10 @@ defaults: run: working-directory: lang/py +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: test: name: Python ${{ matrix.python }} Tests diff --git a/.github/workflows/test-lang-ruby.yml b/.github/workflows/test-lang-ruby.yml index e7b59e0cfc0..b846781ea2f 100644 --- a/.github/workflows/test-lang-ruby.yml +++ b/.github/workflows/test-lang-ruby.yml @@ -28,6 +28,10 @@ defaults: run: working-directory: lang/ruby +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: test: name: Ruby ${{ matrix.ruby }} Tests diff --git a/.github/workflows/test-lang-rust-audit.yml b/.github/workflows/test-lang-rust-audit.yml index efb3f1eaff7..b25ddc5746d 100644 --- a/.github/workflows/test-lang-rust-audit.yml +++ b/.github/workflows/test-lang-rust-audit.yml @@ -31,6 +31,10 @@ defaults: run: working-directory: lang/rust +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: audit: runs-on: ubuntu-latest diff --git a/.github/workflows/test-lang-rust-ci.yml b/.github/workflows/test-lang-rust-ci.yml index 91364f971ff..e89f4ca65a6 100644 --- a/.github/workflows/test-lang-rust-ci.yml +++ b/.github/workflows/test-lang-rust-ci.yml @@ -30,6 +30,10 @@ defaults: run: working-directory: lang/rust +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: ci: runs-on: ubuntu-latest diff --git a/.github/workflows/test-lang-rust-clippy.yml b/.github/workflows/test-lang-rust-clippy.yml index cedc5f5f042..c5bc52a5aca 100644 --- a/.github/workflows/test-lang-rust-clippy.yml +++ b/.github/workflows/test-lang-rust-clippy.yml @@ -30,6 +30,10 @@ defaults: run: working-directory: lang/rust +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: clippy_check: runs-on: ubuntu-latest diff --git a/.github/workflows/test-lang-rust-miri.yml b/.github/workflows/test-lang-rust-miri.yml index a29f192e4c9..a310d2d4a7c 100644 --- a/.github/workflows/test-lang-rust-miri.yml +++ b/.github/workflows/test-lang-rust-miri.yml @@ -30,6 +30,10 @@ defaults: run: working-directory: lang/rust +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: miri_check: runs-on: ubuntu-latest