Skip to content

Commit

Permalink
chore: Improve the CI on PRs to be more efficient
Browse files Browse the repository at this point in the history
Signed-off-by: Jorge Turrado <[email protected]>
  • Loading branch information
JorTurFer committed Oct 1, 2023
1 parent 3030dcc commit c285e00
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/ci-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand All @@ -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
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/ci-external-scaler-azure-cosmos-db.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/ci-http-add-on.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c285e00

Please sign in to comment.