Skip to content

chore: Add operator test for arm64 platform #1552

chore: Add operator test for arm64 platform

chore: Add operator test for arm64 platform #1552

#
# Copyright (c) 2019-2025 Red Hat, Inc.
# This program and the accompanying materials are made
# available under the terms of the Eclipse Public License 2.0
# which is available at https://www.eclipse.org/legal/epl-2.0/
#
# SPDX-License-Identifier: EPL-2.0
#
# Contributors:
# Red Hat, Inc. - initial API and implementation
#
name: Operator test
on: pull_request
jobs:
operator-on-minikube:
strategy:
fail-fast: false
matrix:
runners: ['ubuntu-22.04', 'ubuntu-22.04-arm']
runs-on: ${{ matrix.runners }}
steps:
- name: Checkout source code
uses: actions/checkout@v3
- name: Start minikube cluster
run: |
if [[ ${{matrix.runners}} == 'ubuntu-22.04' ]]; then
curl -LO https://github.com/kubernetes/minikube/releases/latest/download/minikube-linux
install minikube-linux /usr/local/bin/minikube && rm minikube-linux
else
curl -LO https://github.com/kubernetes/minikube/releases/latest/download/minikube-linux-arm64
install minikube-linux-arm64 /usr/local/bin/minikube && rm minikube-linux-arm64
fi
minikube start --vm-driver=docker --addons=ingress --cpus 2 --memory 6500
- name: Install yq
run: sudo pip install yq
- name: Install chectl
run: bash <(curl -sL https://che-incubator.github.io/chectl/install.sh) --channel=next
- name: Run tests
run: /bin/bash build/scripts/minikube-tests/test-operator.sh
- uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: artifacts
path: /tmp/artifacts-che