diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fe2f9314c..f22e42d37 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -43,6 +43,10 @@ jobs: curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.17.0/bin/linux/amd64/kubectl chmod +x ./kubectl sudo mv ./kubectl /usr/local/bin/kubectl + # install codespan schema checker + curl -fsSL -o codespan-schema-checker https://github.com/kmodules/codespan-schema-checker/releases/download/v0.0.1/codespan-schema-checker-linux-amd64 + chmod +x codespan-schema-checker + sudo mv codespan-schema-checker /usr/local/bin/codespan-schema-checker - name: Run checks run: | @@ -66,25 +70,25 @@ jobs: - name: Prepare cluster for testing id: local-path - env: - DOCKER_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }} - USERNAME: 1gtm - REGISTRY_SECRET: regcred run: | echo "waiting for nodes to be ready ..." kubectl wait --for=condition=Ready nodes --all --timeout=5m kubectl get nodes echo - echo "create docker-registry secret" - kubectl create secret docker-registry ${REGISTRY_SECRET} --namespace=kube-system --docker-server=https://index.docker.io/v1/ --docker-username=${USERNAME} --docker-password=${DOCKER_TOKEN} - - - name: Install CRDs - run: | - kubectl apply -f https://github.com/stashed/apimachinery/raw/master/crds/stash.appscode.com_functions.yaml - kubectl apply -f https://github.com/stashed/apimachinery/raw/master/crds/stash.appscode.com_tasks.yaml + echo "install helm 3" + curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash + echo "install stash-crds chart" + helm repo add appscode https://charts.appscode.com/stable/ + helm repo update + helm install stash-crds appscode/stash-crds + helm install kmodules-crds appscode/kmodules-crds kubectl wait --for=condition=NamesAccepted crds --all --timeout=5m - name: Test charts run: | export KUBECONFIG=$HOME/.kube/config make ct + + - name: Check codespan schema + run: | + codespan-schema-checker --content=./docs