Skip to content

Commit f0da9c7

Browse files
1gtmtamalsaha
andauthored
[cherry-pick] Check codespan schema (#625) (#629)
/cherry-pick Signed-off-by: Tamal Saha <tamal@appscode.com> Co-authored-by: Tamal Saha <tamal@appscode.com>
1 parent fdaaf91 commit f0da9c7

File tree

1 file changed

+15
-11
lines changed

1 file changed

+15
-11
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ jobs:
4040
curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.17.0/bin/linux/amd64/kubectl
4141
chmod +x ./kubectl
4242
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
4347
4448
- name: Run checks
4549
run: |
@@ -63,25 +67,25 @@ jobs:
6367

6468
- name: Prepare cluster for testing
6569
id: local-path
66-
env:
67-
DOCKER_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
68-
USERNAME: 1gtm
69-
REGISTRY_SECRET: regcred
7070
run: |
7171
echo "waiting for nodes to be ready ..."
7272
kubectl wait --for=condition=Ready nodes --all --timeout=5m
7373
kubectl get nodes
7474
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
8282
kubectl wait --for=condition=NamesAccepted crds --all --timeout=5m
8383
8484
- name: Test charts
8585
run: |
8686
export KUBECONFIG=$HOME/.kube/config
8787
make ct
88+
89+
- name: Check codespan schema
90+
run: |
91+
codespan-schema-checker --content=./docs

0 commit comments

Comments
 (0)