Skip to content

[ci] fix action

[ci] fix action #3

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: Install Dependencies
run: |
pip install --upgrade tox
K3D_VERSION=v5.6.0
wget https://github.com/k3d-io/k3d/releases/download/${K3D_VERSION}/k3d-linux-amd64
mv k3d-linux-amd64 k3d
chmod +x k3d
export PATH=`pwd`:$PATH
- name: Setup Cluster
run: |
tox -e dev.k8s.registry
tox -e dev.k8s.start
- name: Upgrade helm on latest beta
run: |
UPGRADE_TYPE=BetaToDev tox -e syft.test.helm.upgrade
- name: Upgrade helm on latest beta
if: always()
run: |
tox -e dev.k8s.destroy