Skip to content

Commit 96e9548

Browse files
Update validator
1 parent cdf1c7c commit 96e9548

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/validate.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@ name: YAML validation
33
on:
44
push:
55
paths:
6+
- 'wiki/**/*.yaml'
67
- 'elements/**/*.yaml'
78
- 'events/**/*.yaml'
89
- 'functions/**/*.yaml'
910
- 'schemas/**/*.yaml'
1011
pull_request:
1112
paths:
13+
- 'wiki/**/*.yaml'
1214
- 'elements/**/*.yaml'
1315
- 'events/**/*.yaml'
1416
- 'functions/**/*.yaml'

tools/validate.sh

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
#!/bin/bash
22

3+
tools/yajsv -s schemas/structure.yaml wiki/structure.yaml
4+
tools/yajsv -s schemas/categories.yaml wiki/categories.yaml
5+
36
find 'functions/' -name '*.yaml' -type f -print0 | xargs -0 -I {} tools/yajsv -s schemas/function.yaml {}
7+
find 'articles/' -name '*.yaml' -type f -print0 | xargs -0 -I {} tools/yajsv -s schemas/article.yaml {}

0 commit comments

Comments
 (0)