@@ -3,11 +3,10 @@ name: Lint and Test Charts
33on : pull_request
44
55jobs :
6- lint-test :
6+ lint :
77 runs-on : ubuntu-latest
88 steps :
9- - name : Checkout
10- uses : actions/checkout@v2
9+ - uses : actions/checkout@v2
1110 with :
1211 fetch-depth : 0
1312
@@ -39,34 +38,14 @@ jobs:
3938 - name : Run chart-testing (lint)
4039 run : ct lint --config ct.yaml
4140
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
4845 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
6647
67- - name : Check if cert-manager is up
68- run : |
69- cmctl check api --wait=5m
48+ - uses : ./.github/actions/prepare-k8s
7049
7150 - name : Run chart-testing (install)
7251 run : ct install --config ct.yaml
0 commit comments