Skip to content

Commit

Permalink
chore: Release chectl under linux/arm64 platform (#2953)
Browse files Browse the repository at this point in the history
* chore: Release chectl under linux/arm64 platform

Signed-off-by: Anatolii Bazko <[email protected]>
  • Loading branch information
tolusha authored Feb 5, 2025
1 parent 7cbf47f commit 826613d
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 33 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/minikube-chectl-deploy-test.yml
Original file line number Diff line number Diff line change
@@ -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/*
2 changes: 1 addition & 1 deletion .github/workflows/minikube-chectl-release-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
which chectl
yarn test --coverage=false --forceExit --testRegex=test/e2e/e2e.test.ts
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: test-artifacts
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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@v3
if: ${{ always() }}
with:
name: test-artifacts
path: /tmp/logs/*
chectl-update-commands:
chectl-update-test:
runs-on: ubuntu-22.04
steps:
- name: Checkout
Expand All @@ -64,7 +37,7 @@ jobs:
run: |
export PLATFORM=minikube
yarn test --coverage=false --forceExit --testRegex=test/e2e/e2e-upgrade-version.test.ts
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: test-artifacts
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
sed -i "s|INSERT-KEY-HERE|${{ secrets.SEGMENT_WRITE_KEY }}|g" src/hooks/analytics/analytics.ts
git tag ${{ steps.TAG_SHA.outputs.gh_tag }}
TARGETS=linux-arm,linux-x64,linux-s390x,linux-ppc64le,darwin-x64,darwin-arm64,win32-x64,win32-x86
TARGETS=linux-arm64,linux-arm,linux-x64,linux-s390x,linux-ppc64le,darwin-x64,darwin-arm64,win32-x64,win32-x86
yarn prepack && yarn pack-binaries --targets=$TARGETS
# Rename binaries to remove the sha1 from their names
Expand Down
4 changes: 2 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3683,7 +3683,7 @@ detect-newline@^3.0.0:

"devworkspace-operator@https://github.com/devfile/devworkspace-operator#main":
version "0.0.0"
resolved "https://github.com/devfile/devworkspace-operator#7ecb9855b53b0cb6a22f1f17dd07fc0fafd0b426"
resolved "https://github.com/devfile/devworkspace-operator#847cb6d7433054e3cbcdf3673fef2ea0a66f6e09"

dezalgo@^1.0.0:
version "1.0.4"
Expand Down Expand Up @@ -3744,7 +3744,7 @@ ecc-jsbn@~0.1.1:

"eclipse-che-operator@https://github.com/eclipse-che/che-operator#main":
version "0.0.0"
resolved "https://github.com/eclipse-che/che-operator#be4e7bc24d3ecef1e76c56b21c161609f06f181b"
resolved "https://github.com/eclipse-che/che-operator#5330e7b7e150fe36f87ad2eea33a49ae6854832f"

editorconfig@^0.15.0:
version "0.15.3"
Expand Down

0 comments on commit 826613d

Please sign in to comment.