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