From 673d465326afd58902a1c2bc8627140a5ebdeb7c Mon Sep 17 00:00:00 2001 From: Anatolii Bazko Date: Wed, 5 Feb 2025 10:56:54 +0100 Subject: [PATCH] Fix Signed-off-by: Anatolii Bazko --- .../workflows/minikube-chectl-deploy-test.yml | 42 +++++++++++++++++++ ...ts.yml => minikube-chectl-update-test.yml} | 31 +------------- 2 files changed, 44 insertions(+), 29 deletions(-) create mode 100644 .github/workflows/minikube-chectl-deploy-test.yml rename .github/workflows/{minikube-chectl-commands-tests.yml => minikube-chectl-update-test.yml} (60%) diff --git a/.github/workflows/minikube-chectl-deploy-test.yml b/.github/workflows/minikube-chectl-deploy-test.yml new file mode 100644 index 000000000..f367216a9 --- /dev/null +++ b/.github/workflows/minikube-chectl-deploy-test.yml @@ -0,0 +1,42 @@ +# +# Copyright (c) 2019-2023 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: Commands tests +on: pull_request +jobs: + chectl-deploy-test: + runs-on: ubuntu-22.04 + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 + persist-credentials: false + - name: Start minikube cluster + uses: che-incubator/setup-minikube-action@next + with: + minikube-version: v1.29.0 + - name: Install NodeJS + uses: actions/setup-node@v3 + with: + node-version: 18.18.0 + - name: Build chectl + run: yarn + - name: Run e2e tests + run: | + export PLATFORM=minikube + yarn test --coverage=false --forceExit --testRegex=test/e2e/e2e.test.ts + - uses: actions/upload-artifact@v4 + if: ${{ always() }} + with: + name: test-artifacts + path: /tmp/logs/* diff --git a/.github/workflows/minikube-chectl-commands-tests.yml b/.github/workflows/minikube-chectl-update-test.yml similarity index 60% rename from .github/workflows/minikube-chectl-commands-tests.yml rename to .github/workflows/minikube-chectl-update-test.yml index 8fb44c746..3bb360389 100644 --- a/.github/workflows/minikube-chectl-commands-tests.yml +++ b/.github/workflows/minikube-chectl-update-test.yml @@ -13,34 +13,7 @@ name: Commands tests on: pull_request jobs: - chectl-deploy-commands: - runs-on: ubuntu-22.04 - steps: - - name: Checkout - uses: actions/checkout@v3 - with: - fetch-depth: 0 - persist-credentials: false - - name: Start minikube cluster - uses: che-incubator/setup-minikube-action@next - with: - minikube-version: v1.29.0 - - name: Install NodeJS - uses: actions/setup-node@v3 - with: - node-version: 18.18.0 - - name: Build chectl - run: yarn - - name: Run e2e tests - run: | - export PLATFORM=minikube - yarn test --coverage=false --forceExit --testRegex=test/e2e/e2e.test.ts - - uses: actions/upload-artifact@v4 - if: ${{ always() }} - with: - name: test-artifacts-deploy - path: /tmp/logs/* - chectl-update-commands: + chectl-update-test: runs-on: ubuntu-22.04 steps: - name: Checkout @@ -67,5 +40,5 @@ jobs: - uses: actions/upload-artifact@v4 if: ${{ always() }} with: - name: test-artifacts-update + name: test-artifacts path: /tmp/logs/*