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 <sanketsudake@gmail.com>
This commit is contained in:
co-authored by
Sanket Sudake
parent
611f556cf9
commit
dc57f83d19
@@ -12,6 +12,7 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
paths:
|
paths:
|
||||||
|
- '.github/workflows/*'
|
||||||
- '**.go'
|
- '**.go'
|
||||||
- 'charts/**'
|
- 'charts/**'
|
||||||
- 'test/**'
|
- 'test/**'
|
||||||
@@ -20,7 +21,12 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
# Job to run change detection
|
# Job to run change detection
|
||||||
integration-test:
|
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:
|
steps:
|
||||||
- name: Checkout sources
|
- name: Checkout sources
|
||||||
uses: actions/checkout@v2.3.4
|
uses: actions/checkout@v2.3.4
|
||||||
@@ -44,12 +50,12 @@ jobs:
|
|||||||
- name: Kind Clutser
|
- name: Kind Clutser
|
||||||
uses: engineerd/setup-kind@v0.5.0
|
uses: engineerd/setup-kind@v0.5.0
|
||||||
with:
|
with:
|
||||||
config: kind.yaml
|
image: ${{ matrix.kindimage }}
|
||||||
|
version: v0.11.0
|
||||||
|
|
||||||
- name: Configuring and testing the Installation
|
- name: Configuring and testing the Installation
|
||||||
run: |
|
run: |
|
||||||
kubectl cluster-info --context kind-kind
|
kubectl cluster-info --context kind-kind
|
||||||
kind get kubeconfig --internal >$HOME/.kube/config
|
|
||||||
kubectl get nodes
|
kubectl get nodes
|
||||||
sudo apt-get install -y apache2-utils
|
sudo apt-get install -y apache2-utils
|
||||||
|
|
||||||
@@ -103,4 +109,4 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: fission-support-dump
|
name: fission-support-dump
|
||||||
path: fission-dump/*.zip
|
path: fission-dump/*.zip
|
||||||
retention-days: 5
|
retention-days: 5
|
||||||
Reference in New Issue
Block a user