Skip to content

Commit

Permalink
[ci] fix action
Browse files Browse the repository at this point in the history
  • Loading branch information
yashgorana committed Feb 26, 2024
1 parent 2ade255 commit 24df703
Showing 1 changed file with 15 additions and 17 deletions.
32 changes: 15 additions & 17 deletions .github/workflows/pr-tests-helm-upgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,35 +26,33 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Upgrade helm on latest beta
- name: Install dependencies
run: |
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
# Install python deps
pip install --upgrade pip
pip install tox
# Install k3d
K3D_VERSION=v5.6.0
wget --no-verbose -O k3d https://github.com/k3d-io/k3d/releases/download/${K3D_VERSION}/k3d-linux-amd64
chmod +x k3d
export PATH=`pwd`:$PATH
k3d version
# Install Devspace
DEVSPACE_VERSION=v6.3.11
curl -sSL https://github.com/loft-sh/devspace/releases/download/${DEVSPACE_VERSION}/devspace-linux-amd64 -o ./devspace
chmod +x devspace
devspace version
K3D_VERSION=5.6.0
DEVSPACE_VERSION=6.3.11
brew install helm k3d@$K3D_VERSION devspace@$DEVSPACE_VERSION
# Install helm
curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
helm version
- name: Setup cluster
run: |
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
tox -e dev.k8s.registry
tox -e dev.k8s.start
- name: Upgrade helm chart
run: |
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
UPGRADE_TYPE=BetaToDev tox -e syft.test.helm.upgrade
- name: Destroy cluster
if: always()
run: |
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
tox -e dev.k8s.destroyall

0 comments on commit 24df703

Please sign in to comment.