From 24df703dd571c2b698a4acdc942116e382537690 Mon Sep 17 00:00:00 2001 From: Yash Gorana Date: Mon, 26 Feb 2024 21:15:04 +0530 Subject: [PATCH] [ci] fix action --- .github/workflows/pr-tests-helm-upgrade.yml | 32 ++++++++++----------- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/.github/workflows/pr-tests-helm-upgrade.yml b/.github/workflows/pr-tests-helm-upgrade.yml index eec0fdbca18..f559c8b697e 100644 --- a/.github/workflows/pr-tests-helm-upgrade.yml +++ b/.github/workflows/pr-tests-helm-upgrade.yml @@ -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