The version v2 was deprecated and was causing warnings.
Signed-off-by: NymanRobin <robin.nyman@est.tech>
(cherry picked from commit 8af9917b9e)
40 lines
1.3 KiB
YAML
40 lines
1.3 KiB
YAML
name: Cluster Setup
|
|
description: Cluster setup for integration test
|
|
inputs:
|
|
kubernetes-version:
|
|
description: kubernetes version to use for the workflow
|
|
required: true
|
|
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- name: Free Disk Space (Ubuntu)
|
|
uses: jlumbroso/free-disk-space@main
|
|
with:
|
|
# this might remove tools that are actually needed,
|
|
# if set to "true" but frees about 6 GB
|
|
tool-cache: true
|
|
|
|
- name: setup golang
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version: "1.21"
|
|
|
|
- name: Setup Minikube
|
|
shell: bash --noprofile --norc -eo pipefail -x {0}
|
|
run: |
|
|
tests/scripts/github-action-helper.sh install_minikube_with_none_driver ${{ inputs.kubernetes-version }}
|
|
|
|
- name: print k8s cluster status
|
|
shell: bash --noprofile --norc -eo pipefail -x {0}
|
|
run: tests/scripts/github-action-helper.sh print_k8s_cluster_status
|
|
|
|
# This step is required for all the integration tests except the canary tests
|
|
- name: use local disk
|
|
shell: bash --noprofile --norc -eo pipefail -x {0}
|
|
run: tests/scripts/github-action-helper.sh use_local_disk_for_integration_test
|
|
|
|
- name: build rook
|
|
shell: bash --noprofile --norc -eo pipefail -x {0}
|
|
run: tests/scripts/github-action-helper.sh build_rook
|