7.99.0 release #1578
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# 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: Set arch environment variable | |
run: | | |
if [[ ${{matrix.runners}} == 'ubuntu-22.04' ]]; then | |
echo arch="amd64" >> $GITHUB_ENV | |
else | |
echo arch="arm64" >> $GITHUB_ENV | |
fi | |
- name: Start minikube cluster | |
run: | | |
curl -LO https://github.com/kubernetes/minikube/releases/latest/download/minikube-linux-${{env.arch}} | |
install minikube-linux-${{env.arch}} /usr/local/bin/minikube && rm minikube-linux-${{env.arch}} | |
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-${{env.arch}} | |
path: /tmp/artifacts-che |