@@ -3,11 +3,10 @@ name: Lint and Test Charts
3
3
on : pull_request
4
4
5
5
jobs :
6
- lint-test :
6
+ lint :
7
7
runs-on : ubuntu-latest
8
8
steps :
9
- - name : Checkout
10
- uses : actions/checkout@v2
9
+ - uses : actions/checkout@v2
11
10
with :
12
11
fetch-depth : 0
13
12
@@ -39,34 +38,14 @@ jobs:
39
38
- name : Run chart-testing (lint)
40
39
run : ct lint --config ct.yaml
41
40
42
- - name : Create kind cluster
43
- uses : helm/kind-action@v1.9.0
44
- if : steps.list-changed.outputs.changed == 'true'
45
-
46
- - name : Install kubectl
47
- uses : azure/setup-kubectl@v4.0.0
41
+ test-with-cassandra :
42
+ runs-on : ubuntu-latest
43
+ steps :
44
+ - uses : actions/checkout@v2
48
45
with :
49
- version : ' v1.28.8'
50
- id : install
51
-
52
- - name : Set up cert-manager
53
- run : |
54
- kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/main/deploy/static/provider/kind/deploy.yaml --namespace ingress-nginx
55
- kubectl label node --all ingress-ready=true
56
- kubectl describe pod --selector=app.kubernetes.io/component=controller -n ingress-nginx
57
- kubectl wait --namespace ingress-nginx --for=condition=ready pod --selector=app.kubernetes.io/component=controller --timeout=5m
58
- kubectl apply --validate=false -f https://github.com/jetstack/cert-manager/releases/download/v1.6.1/cert-manager.yaml
59
-
60
- - name : Set up cmctl
61
- run : |
62
- curl -sSL -o cmctl.tar.gz https://github.com/cert-manager/cert-manager/releases/download/v1.6.1/cmctl-linux-amd64.tar.gz
63
- tar xzf cmctl.tar.gz
64
- sudo mv cmctl /usr/local/bin
65
- cmctl version
46
+ fetch-depth : 0
66
47
67
- - name : Check if cert-manager is up
68
- run : |
69
- cmctl check api --wait=5m
48
+ - uses : ./.github/actions/prepare-k8s
70
49
71
50
- name : Run chart-testing (install)
72
51
run : ct install --config ct.yaml
0 commit comments