With the release of k8s 1.23 we update the CI to run PRs against K8s 1.16 and K8s 1.23, the oldest and latest releases that are supported. The master branch will run against the latest v1.16, 1.18, 1.21, and 1.23. Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
35 lines
1019 B
YAML
35 lines
1019 B
YAML
name: Cluster Setup
|
|
description: Cluster setup for canary test
|
|
inputs:
|
|
github-token:
|
|
description: GITHUB_TOKEN from the calling workflow
|
|
required: true
|
|
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- name: setup golang
|
|
uses: actions/setup-go@v2
|
|
with:
|
|
go-version: 1.16
|
|
|
|
- name: setup minikube
|
|
uses: manusa/actions-setup-minikube@v2.4.2
|
|
with:
|
|
minikube version: 'v1.24.0'
|
|
kubernetes version: 'v1.23.0'
|
|
start args: --memory 6g --cpus=2 --addons ingress
|
|
github token: ${{ inputs.github-token }}
|
|
|
|
- name: install deps
|
|
shell: bash --noprofile --norc -eo pipefail -x {0}
|
|
run: tests/scripts/github-action-helper.sh install_deps
|
|
|
|
- name: print k8s cluster status
|
|
shell: bash --noprofile --norc -eo pipefail -x {0}
|
|
run: tests/scripts/github-action-helper.sh print_k8s_cluster_status
|
|
|
|
- name: build rook
|
|
shell: bash --noprofile --norc -eo pipefail -x {0}
|
|
run: tests/scripts/github-action-helper.sh build_rook
|