Skip to content

Commit

Permalink
Update validator
Browse files Browse the repository at this point in the history
  • Loading branch information
Fernando-A-Rocha committed Jan 18, 2025
1 parent cdf1c7c commit 96e9548
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/validate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@ name: YAML validation
on:
push:
paths:
- 'wiki/**/*.yaml'
- 'elements/**/*.yaml'
- 'events/**/*.yaml'
- 'functions/**/*.yaml'
- 'schemas/**/*.yaml'
pull_request:
paths:
- 'wiki/**/*.yaml'
- 'elements/**/*.yaml'
- 'events/**/*.yaml'
- 'functions/**/*.yaml'
Expand Down
4 changes: 4 additions & 0 deletions tools/validate.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#!/bin/bash

tools/yajsv -s schemas/structure.yaml wiki/structure.yaml
tools/yajsv -s schemas/categories.yaml wiki/categories.yaml

find 'functions/' -name '*.yaml' -type f -print0 | xargs -0 -I {} tools/yajsv -s schemas/function.yaml {}
find 'articles/' -name '*.yaml' -type f -print0 | xargs -0 -I {} tools/yajsv -s schemas/article.yaml {}

0 comments on commit 96e9548

Please sign in to comment.