Files
my-rook-config/.github/workflows/integration-test-setup-cluster-resources/action.yaml
T
Workflow config file is invalid. Please check your config file: unknown on type: 0
Joshua Hoblitt f4b8879cbe test: merge integration-test-config-latest-k8s & canary-test-config
into a single combined integration-test-setup-cluster-resources
workflow. This ensures that the same gha runner preparation, go version,
etc. is used for both the canary and integration tests.

Signed-off-by: Joshua Hoblitt <josh@hoblitt.com>
(cherry picked from commit c5bfe3a806)
2026-01-23 22:33:28 +00:00

62 lines
2.3 KiB
YAML

name: setup cluster resources
description: Setup cluster resources for canary/integration tests
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:
tool-cache: true # removes old golang version but saves ~6GB
large-packages: false # takes a long time to run b/c package mgr
android: false # takes a long time to run b/c package mgr
dotnet: false # takes a long time to run b/c package mgr
haskell: false # takes a long time to run b/c package mgr
- name: setup golang
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
with:
go-version: "1.25"
- name: Install cri-dockerd
shell: bash --noprofile --norc -eo pipefail -x {0}
run: |
curl -LO https://github.com/Mirantis/cri-dockerd/releases/download/v0.3.21/cri-dockerd_0.3.21.3-0.ubuntu-focal_amd64.deb
sudo dpkg -i cri-dockerd_0.3.21.3-0.ubuntu-focal_amd64.deb
rm -f cri-dockerd_0.3.21.3-0.ubuntu-focal_amd64.deb
- name: Setup Minikube
uses: medyagh/setup-minikube@latest
with:
# lock minikube version to ensure release branch CI doesn't fail when latest minikube no
# longer supports older k8s version we lock to
minikube-version: "1.37.0"
kubernetes-version: ${{ inputs.kubernetes-version }}
driver: none
container-runtime: docker
memory: 6g
cpus: 2
addons: ingress
cni: calico
- 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
# 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