-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (38 loc) · 1.3 KB
/
Copy pathvalidate.yaml
File metadata and controls
43 lines (38 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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