-
Notifications
You must be signed in to change notification settings - Fork 4
72 lines (63 loc) · 1.73 KB
/
ci.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
60
61
62
63
64
65
66
67
68
69
70
71
72
name: CI
on:
pull_request:
branches:
- main
jobs:
helm:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Helm Check
uses: igabaydulin/[email protected]
env:
CHART_LOCATION: ./charts/bindplane
CHART_VALUES: ./charts/bindplane/values.yaml
integration:
runs-on: ubuntu-20.04
strategy:
max-parallel: 3
matrix:
case:
- "default"
- "all"
- "image"
- "ingress"
- "prometheus_sidecar"
k8s_version:
- v1.25.0
- v1.27.0
- v1.29.0
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Start Minikube
uses: medyagh/setup-minikube@master
with:
cache: true
kubernetes-version: ${{ matrix.k8s_version }}
addons: default-storageclass,storage-provisioner,ingress
- name: Wait For Ingress Pods
run: |
sleep 5
kubectl -n ingress-nginx wait deployment ingress-nginx-controller --timeout=120s --for condition=Available=True
sleep 30
kubectl -n ingress-nginx get all
- name: Deploy
run: |
helm template \
--values test/cases/${{ matrix.case }}/values.yaml \
charts/bindplane | \
kubectl apply -f -
- name: Wait For Pods
run: kubectl -n default wait --for=condition=ready pods --all --timeout=120s
- name: "Debug: Get status and logs"
if: always()
run: |
kubectl -n default get all
kubectl -n default logs pod/release-name-bindplane-0