Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(installer): add tests for various modes of installer #1645

Merged
merged 17 commits into from
Feb 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 33 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ jobs:
installer-sh:
name: Test installer.sh
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ github.token }}
strategy:
matrix:
# NOTE: for each new OS, the check must be explicitly set as required in Github
Expand All @@ -96,15 +98,41 @@ jobs:
steps:
- name: Prepare OS
run: |
(apt-get update && apt-get install file curl -y) || true
yum install file tar gzip -y || true
(apt-get update && apt-get install file curl gh -y) || true
(yum install yum-utils -y && yum-config-manager --add-repo https://cli.github.com/packages/rpm/gh-cli.repo && yum install file tar gzip gh -y) || true
pacman --noconfirm -Sy github-cli file curl || true
- uses: actions/checkout@v3
- name: Run installer.sh
env:
VERBOSE: ${{ runner.debug }}
run: sh app/installer.sh
- name: Check kumactl architecture
run: file ./kuma-*/bin/kumactl | grep x86-64 &> /dev/null
run: |
sh app/installer.sh
file ./kuma-*/bin/kumactl | grep x86-64 &> /dev/null
rm -rf ./kuma-*/
- name: Run installer.sh with VERSION=preview
env:
VERBOSE: ${{ runner.debug }}
VERSION: preview
run: |
sh app/installer.sh
file ./kuma-0.0.0-preview.v*/bin/kumactl | grep x86-64 &> /dev/null
rm -rf ./kuma-*/
- name: Run installer.sh with legacy version
env:
VERBOSE: ${{ runner.debug }}
VERSION: 2.2.0
run: |
sh app/installer.sh
file ./kuma-2.2.0/bin/kumactl | grep x86-64 &> /dev/null
rm -rf ./kuma-*/
- name: Run installer.sh with preview version
env:
VERBOSE: ${{ runner.debug }}
VERSION: 0.0.0-preview.v76e03eb68
run: |
sh app/installer.sh
file ./kuma-*/bin/kumactl | grep x86-64 &> /dev/null
rm -rf ./kuma-*/

installer-sh-arm64:
runs-on: ubuntu-latest
Expand Down
1 change: 0 additions & 1 deletion app/installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,6 @@ EOF
else
err "Unable to download ${TARGET_NAME}"
fi

}

main "$@"
Loading