From dc57f83d1956837e24ecc1ca7dd28b4e740f1dac Mon Sep 17 00:00:00 2001 From: Suramya Shah <21042045+suramya-shah@users.noreply.github.com> Date: Tue, 22 Jun 2021 13:25:55 +0530 Subject: [PATCH] Add multi k8s version and os support in ci tests (#2082) * add multi env and multi k8s support on integraation tests * test workflow * test workflow * test workflow * remove test branch name * correct kind action with image and version * use same kind version as per kind images * use OS as ubuntu-latest * fetch upstream * add .github/workflows to paths * resolve conflicts * make kindimage appear first on workflow Co-authored-by: Sanket Sudake --- .github/workflows/push_pr.yaml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/push_pr.yaml b/.github/workflows/push_pr.yaml index 7c68066f..fd7a3cc3 100644 --- a/.github/workflows/push_pr.yaml +++ b/.github/workflows/push_pr.yaml @@ -12,6 +12,7 @@ on: branches: - master paths: + - '.github/workflows/*' - '**.go' - 'charts/**' - 'test/**' @@ -20,7 +21,12 @@ on: jobs: # Job to run change detection integration-test: - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + kindimage : [ 'kindest/node:v1.19.11','kindest/node:v1.20.7', 'kindest/node:v1.21.1' ] + os: [ ubuntu-latest ] steps: - name: Checkout sources uses: actions/checkout@v2.3.4 @@ -44,12 +50,12 @@ jobs: - name: Kind Clutser uses: engineerd/setup-kind@v0.5.0 with: - config: kind.yaml + image: ${{ matrix.kindimage }} + version: v0.11.0 - name: Configuring and testing the Installation run: | kubectl cluster-info --context kind-kind - kind get kubeconfig --internal >$HOME/.kube/config kubectl get nodes sudo apt-get install -y apache2-utils @@ -103,4 +109,4 @@ jobs: with: name: fission-support-dump path: fission-dump/*.zip - retention-days: 5 + retention-days: 5 \ No newline at end of file