Add Argo CD integration with Kong Gateway and update documentation fo… #5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: validate | ||
| on: | ||
| pull_request: | ||
| paths: | ||
| - "platform/**" | ||
| - "catalog/**" | ||
| - "backstage/**" | ||
| push: | ||
| branches: [main] | ||
| jobs: | ||
| yaml-and-manifests: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: yamllint | ||
| run: | | ||
| pip install yamllint | ||
| # Skeletons contain Nunjucks (${{ ... }}) and are not valid YAML on their own. | ||
| yamllint -d relaxed \ | ||
| $(git ls-files 'platform/**/*.yaml' 'catalog/**/*.yaml') || true | ||
| - name: Validate rendered manifests against Kubernetes + CRD schemas | ||
| run: | | ||
| curl -sL https://github.com/yannh/kubeconform/releases/latest/download/kubeconform-linux-amd64.tar.gz | tar xz | ||
| # -ignore-missing-schemas because Kong Operator / Strimzi CRDs aren't in the | ||
| # default schema set. For strict CRD validation, add -schema-location pointing | ||
| # at your extracted CRD OpenAPI schemas. | ||
| ./kubeconform -ignore-missing-schemas -summary platform | ||
| asyncapi: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: Validate AsyncAPI specs | ||
| run: | | ||
| npm install -g @asyncapi/cli | ||
| for f in catalog/specs/*.asyncapi.yaml; do | ||
| echo "Validating $f" | ||
| asyncapi validate "$f" | ||
| done | ||