Skip to content

Commit 0a4c997

Browse files
committed
Use Minikube cluster
Signed-off-by: Yuki Iwai <[email protected]>
1 parent bce83b6 commit 0a4c997

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

.github/workflows/main.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,14 @@ jobs:
4646
uses: actions/setup-go@v3
4747
with:
4848
go-version-file: go.mod
49+
- name: Setup Minikube Cluster
50+
uses: medyagh/setup-minikube@latest
51+
with:
52+
driver: none
53+
kubernetes-version: ${{ matrix.kubernetes-version }}
54+
minikube-version: '1.33.1'
55+
wait: 'all'
56+
start-args: '--wait-timeout=120s'
4957
- name: Run tests
5058
env:
5159
RELEASE_VERSION: test
@@ -54,4 +62,8 @@ jobs:
5462
PLATFORMS: linux/amd64
5563
INTEL_PLATFORMS: linux/amd64
5664
MPICH_PLATFORMS: linux/amd64
57-
run: make test_e2e
65+
USE_EXISTING_CLUSTER: true
66+
shell: bash
67+
run: |
68+
make ci_test_images
69+
make test_e2e -o test_images -o kind

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,12 @@ images:
102102
@echo "VERSION: ${RELEASE_VERSION}"
103103
${IMG_BUILDER} build $(BUILD_ARGS) --platform $(PLATFORMS) --build-arg VERSION=${CONTROLLER_VERSION} --build-arg RELEASE_VERSION=${RELEASE_VERSION} -t ${IMAGE_NAME}:${RELEASE_VERSION} .
104104

105+
.PHONY: ci_test_images
106+
ci_test_images: test_images
107+
minikube image load ${REGISTRY}/mpi-pi:${RELEASE_VERSION}-openmpi
108+
minikube image load ${REGISTRY}/mpi-pi:${RELEASE_VERSION}-intel
109+
minikube image load ${REGISTRY}/mpi-pi:${RELEASE_VERSION}-mpich
110+
105111
.PHONY: test_images
106112
test_images:
107113
${IMG_BUILDER} build $(BUILD_ARGS) --platform $(PLATFORMS) --build-arg port=${BASE_IMAGE_SSH_PORT} -t ${REGISTRY}/base:${RELEASE_VERSION} build/base

0 commit comments

Comments
 (0)