Skip to content

Commit dc8157e

Browse files
committed
ci: lexicon schema validation.
1 parent 79781e5 commit dc8157e

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Validate PinkSea Lexicons
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
validate-pinksea-lexicons-workflow:
11+
name: Validate PinkSea lexicons
12+
permissions:
13+
contents: read
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Check for any changed lexicons
17+
id: check-for-changed-lexicons
18+
uses: tj-actions/changed-files@v41
19+
with:
20+
files: |
21+
PinkSea.Lexicons/**/*.json
22+
- name: Validate lexicon schema
23+
if: steps.check-for-changed-lexicons.outputs.any_changed == 'true'
24+
uses: dsanders11/json-schema-validate-action
25+
with:
26+
schema: https://internect.info/lexicon-schema.json
27+
files: PinkSea.Lexicons/**/*.json

0 commit comments

Comments
 (0)