Skip to content

Commit

Permalink
Use Minikube cluster
Browse files Browse the repository at this point in the history
Signed-off-by: Yuki Iwai <[email protected]>
  • Loading branch information
tenzen-y committed Jan 3, 2025
1 parent bce83b6 commit 0a4c997
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,14 @@ jobs:
uses: actions/setup-go@v3
with:
go-version-file: go.mod
- name: Setup Minikube Cluster
uses: medyagh/setup-minikube@latest
with:
driver: none
kubernetes-version: ${{ matrix.kubernetes-version }}
minikube-version: '1.33.1'
wait: 'all'
start-args: '--wait-timeout=120s'
- name: Run tests
env:
RELEASE_VERSION: test
Expand All @@ -54,4 +62,8 @@ jobs:
PLATFORMS: linux/amd64
INTEL_PLATFORMS: linux/amd64
MPICH_PLATFORMS: linux/amd64
run: make test_e2e
USE_EXISTING_CLUSTER: true
shell: bash
run: |
make ci_test_images
make test_e2e -o test_images -o kind
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,12 @@ images:
@echo "VERSION: ${RELEASE_VERSION}"
${IMG_BUILDER} build $(BUILD_ARGS) --platform $(PLATFORMS) --build-arg VERSION=${CONTROLLER_VERSION} --build-arg RELEASE_VERSION=${RELEASE_VERSION} -t ${IMAGE_NAME}:${RELEASE_VERSION} .

.PHONY: ci_test_images
ci_test_images: test_images
minikube image load ${REGISTRY}/mpi-pi:${RELEASE_VERSION}-openmpi
minikube image load ${REGISTRY}/mpi-pi:${RELEASE_VERSION}-intel
minikube image load ${REGISTRY}/mpi-pi:${RELEASE_VERSION}-mpich

.PHONY: test_images
test_images:
${IMG_BUILDER} build $(BUILD_ARGS) --platform $(PLATFORMS) --build-arg port=${BASE_IMAGE_SSH_PORT} -t ${REGISTRY}/base:${RELEASE_VERSION} build/base
Expand Down

0 comments on commit 0a4c997

Please sign in to comment.