Skip to content

Commit 7f7c4eb

Browse files
1gtmtamalsaha
andauthored
[cherry-pick] Check codespan schema (#617) (#619)
/cherry-pick Signed-off-by: Tamal Saha <tamal@appscode.com> Co-authored-by: Tamal Saha <tamal@appscode.com>
1 parent cab4cb3 commit 7f7c4eb

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
@@ -43,6 +43,10 @@ jobs:
4343
curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.17.0/bin/linux/amd64/kubectl
4444
chmod +x ./kubectl
4545
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
4650
4751
- name: Run checks
4852
run: |
@@ -66,25 +70,25 @@ jobs:
6670

6771
- name: Prepare cluster for testing
6872
id: local-path
69-
env:
70-
DOCKER_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
71-
USERNAME: 1gtm
72-
REGISTRY_SECRET: regcred
7373
run: |
7474
echo "waiting for nodes to be ready ..."
7575
kubectl wait --for=condition=Ready nodes --all --timeout=5m
7676
kubectl get nodes
7777
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
8585
kubectl wait --for=condition=NamesAccepted crds --all --timeout=5m
8686
8787
- name: Test charts
8888
run: |
8989
export KUBECONFIG=$HOME/.kube/config
9090
make ct
91+
92+
- name: Check codespan schema
93+
run: |
94+
codespan-schema-checker --content=./docs

0 commit comments

Comments
 (0)