-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move smoke test to resuable workflows for ARM and multi versions
Signed-off-by: Jorge Turrado <[email protected]>
- Loading branch information
Showing
7 changed files
with
97 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
name: Reusable workflow to run smoke tests on ARM64 | ||
|
||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
smoke-tests-ARM64: | ||
name: ARM64 | ||
uses: kedacore/keda/.github/workflows/rw-smoke-tests.yml@reusable-workflows | ||
with: | ||
runs-on: ARM64 | ||
kubernetesVersion: v1.24 | ||
kindImage: kindest/node:v1.24.0@sha256:406fd86d48eaf4c04c7280cd1d2ca1d61e7d0d61ddef0125cb097bc7b82ed6a1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Reusable workflow to run smoke tests | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
runs-on: | ||
required: true | ||
type: string | ||
kubernetesVersion: | ||
required: true | ||
type: string | ||
kindImage: | ||
required: true | ||
type: string | ||
jobs: | ||
smoke-tests: | ||
name: Validate k8s-${{ inputs.kubernetesVersion }} | ||
runs-on: ${{ inputs.runs-on }} | ||
steps: | ||
- name: Setup Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.17 | ||
|
||
- name: Install prerequisites | ||
run: | | ||
sudo apt update | ||
sudo apt install curl make ca-certificates gcc libc-dev -y | ||
env: | ||
DEBIAN_FRONTEND: noninteractive | ||
|
||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 1 | ||
|
||
- name: Create k8s ${{ inputs.kubernetesVersion }} Kind Cluster | ||
uses: helm/kind-action@main | ||
with: | ||
node_image: ${{ inputs.kindImage }} | ||
cluster_name: smoke-tests-cluster-${{ inputs.kubernetesVersion }} | ||
|
||
- name: Run smoke test | ||
run: make smoke-test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Reusable workflow to run smoke tests on different k8s versions | ||
|
||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
smoke-tests: | ||
name: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
kubernetesVersion: [v1.24, v1.23, v1.22, v1.21, v1.20] | ||
include: | ||
- kubernetesVersion: v1.24 | ||
kindImage: kindest/node:v1.24.0@sha256:406fd86d48eaf4c04c7280cd1d2ca1d61e7d0d61ddef0125cb097bc7b82ed6a1 | ||
- kubernetesVersion: v1.23 | ||
kindImage: kindest/node:v1.23.6@sha256:1af0f1bee4c3c0fe9b07de5e5d3fafeb2eec7b4e1b268ae89fcab96ec67e8355 | ||
- kubernetesVersion: v1.22 | ||
kindImage: kindest/node:v1.22.9@sha256:6e57a6b0c493c7d7183a1151acff0bfa44bf37eb668826bf00da5637c55b6d5e | ||
- kubernetesVersion: v1.21 | ||
kindImage: kindest/node:v1.21.12@sha256:ae05d44cc636ee961068399ea5123ae421790f472c309900c151a44ee35c3e3e | ||
- kubernetesVersion: v1.20 | ||
kindImage: kindest/node:v1.20.15@sha256:a6ce604504db064c5e25921c6c0fffea64507109a1f2a512b1b562ac37d652f3 | ||
|
||
uses: kedacore/keda/.github/workflows/rw-smoke-tests.yml@reusable-workflows | ||
with: | ||
runs-on: ubuntu-latest | ||
kubernetesVersion: ${{ matrix.kubernetesVersion }} | ||
kindImage: ${{ matrix.kindImage }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters