From c285e00baf82a0ea08f34107f3edd9286fd2a55a Mon Sep 17 00:00:00 2001 From: Jorge Turrado Date: Sun, 1 Oct 2023 21:15:26 +0200 Subject: [PATCH] chore: Improve the CI on PRs to be more efficient Signed-off-by: Jorge Turrado --- .github/workflows/ci-core.yml | 11 +++++------ .../workflows/ci-external-scaler-azure-cosmos-db.yml | 4 ++++ .github/workflows/ci-http-add-on.yml | 4 ++++ 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci-core.yml b/.github/workflows/ci-core.yml index d3d5d9a7..80cc3f1b 100644 --- a/.github/workflows/ci-core.yml +++ b/.github/workflows/ci-core.yml @@ -16,6 +16,10 @@ on: - '.github/workflows/ci-core.yml' - 'keda/**' +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + jobs: lint-helm-3-x: name: Lint Helm Chart @@ -38,7 +42,7 @@ jobs: fail-fast: false matrix: enableAzureWorkloadIdentity: [false, true] - kubernetesVersion: [v1.28, v1.27, v1.26, v1.25] + kubernetesVersion: [v1.28, v1.26] namespace: ["keda", "not-keda"] enableCertManager: [false, true] include: @@ -53,13 +57,8 @@ jobs: # See https://github.com/kubernetes-sigs/kind/releases - kubernetesVersion: v1.28 kindImage: kindest/node:v1.28.0@sha256:b7a4cad12c197af3ba43202d3efe03246b3f0793f162afb40a33c923952d5b31 - - kubernetesVersion: v1.27 - kindImage: kindest/node:v1.27.3@sha256:3966ac761ae0136263ffdb6cfd4db23ef8a83cba8a463690e98317add2c9ba72 - kubernetesVersion: v1.26 kindImage: kindest/node:v1.26.6@sha256:6e2d8b28a5b601defe327b98bd1c2d1930b49e5d8c512e1895099e4504007adb - - kubernetesVersion: v1.25 - kindImage: kindest/node:v1.25.11@sha256:227fa11ce74ea76a0474eeefb84cb75d8dad1b08638371ecf0e86259b35be0c8 - steps: - name: Check out code uses: actions/checkout@v2 diff --git a/.github/workflows/ci-external-scaler-azure-cosmos-db.yml b/.github/workflows/ci-external-scaler-azure-cosmos-db.yml index abfc7d07..857092b5 100644 --- a/.github/workflows/ci-external-scaler-azure-cosmos-db.yml +++ b/.github/workflows/ci-external-scaler-azure-cosmos-db.yml @@ -14,6 +14,10 @@ on: - .github/workflows/ci-external-scaler-azure-cosmos-db.yml - external-scaler-azure-cosmos-db/** +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + jobs: lint-helm-3-x: name: Lint Helm Chart diff --git a/.github/workflows/ci-http-add-on.yml b/.github/workflows/ci-http-add-on.yml index be5a2d89..d0a9247e 100644 --- a/.github/workflows/ci-http-add-on.yml +++ b/.github/workflows/ci-http-add-on.yml @@ -15,6 +15,10 @@ on: - '.github/workflows/ci-http-add-on.yml' - 'http-add-on/**' +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + jobs: lint-helm-3-x: name: Lint Helm Chart