40
40
curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.17.0/bin/linux/amd64/kubectl
41
41
chmod +x ./kubectl
42
42
sudo mv ./kubectl /usr/local/bin/kubectl
43
+ # install codespan schema checker
44
+ curl -fsSL -o codespan-schema-checker https://github.com/kmodules/codespan-schema-checker/releases/download/v0.0.1/codespan-schema-checker-linux-amd64
45
+ chmod +x codespan-schema-checker
46
+ sudo mv codespan-schema-checker /usr/local/bin/codespan-schema-checker
43
47
44
48
- name : Run checks
45
49
run : |
@@ -63,25 +67,25 @@ jobs:
63
67
64
68
- name : Prepare cluster for testing
65
69
id : local-path
66
- env :
67
- DOCKER_TOKEN : ${{ secrets.DOCKERHUB_TOKEN }}
68
- USERNAME : 1gtm
69
- REGISTRY_SECRET : regcred
70
70
run : |
71
71
echo "waiting for nodes to be ready ..."
72
72
kubectl wait --for=condition=Ready nodes --all --timeout=5m
73
73
kubectl get nodes
74
74
echo
75
- echo "create docker-registry secret "
76
- kubectl create secret docker-registry ${REGISTRY_SECRET} --namespace=kube-system --docker-server= https://index.docker.io/v1/ --docker-username=${USERNAME} --docker-password=${DOCKER_TOKEN}
77
-
78
- - name : Install CRDs
79
- run : |
80
- kubectl apply -f https://github.com/stashed/apimachinery/raw/master/crds/ stash.appscode.com_functions.yaml
81
- kubectl apply -f https://github.com/stashed/apimachinery/raw/master/ crds/stash.appscode.com_tasks.yaml
75
+ echo "install helm 3 "
76
+ curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash
77
+ echo "install stash-crds chart"
78
+ helm repo add appscode https://charts.appscode.com/stable/
79
+ helm repo update
80
+ helm install stash-crds appscode/ stash-crds
81
+ helm install kmodules-crds appscode/kmodules- crds
82
82
kubectl wait --for=condition=NamesAccepted crds --all --timeout=5m
83
83
84
84
- name : Test charts
85
85
run : |
86
86
export KUBECONFIG=$HOME/.kube/config
87
87
make ct
88
+
89
+ - name : Check codespan schema
90
+ run : |
91
+ codespan-schema-checker --content=./docs
0 commit comments