[ci] fix action #5
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: PR Tests - Helm Upgrade | |
on: | |
push: | |
paths: | |
- .github/workflows/pr-tests-helm-upgrade.yml | |
- tox.ini | |
- packages/grid/helm/syft/** | |
pull_request: | |
branches: | |
- dev | |
paths: | |
- packages/grid/helm/syft/** | |
workflow_dispatch: | |
inputs: | |
none: | |
description: "Run helm upgrade" | |
required: false | |
jobs: | |
pr-tests-helm-upgrade: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Upgrade helm on latest beta | |
run: | | |
# Install python deps | |
pip install --upgrade 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 helm | |
curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash | |
helm version | |
tox -e dev.k8s.registry | |
tox -e dev.k8s.start | |
UPGRADE_TYPE=BetaToDev tox -e syft.test.helm.upgrade | |
- name: Destroy cluster | |
if: always() | |
run: | | |
tox -e dev.k8s.destroy |