-
-
Notifications
You must be signed in to change notification settings - Fork 2k
59 lines (45 loc) · 1.29 KB
/
pr-tests-helm-upgrade.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
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: |
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
brew update
# Install python deps
pip install --upgrade pip
pip install tox
K3D_VERSION=5.6.0
DEVSPACE_VERSION=6.3.11
brew install helm k3d@$K3D_VERSION devspace@$DEVSPACE_VERSION
- name: Setup cluster
run: |
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
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