-
Notifications
You must be signed in to change notification settings - Fork 3
51 lines (41 loc) · 1.22 KB
/
validate_changes.yml
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
44
45
46
47
48
49
50
51
name: Validate Changes
on:
push:
paths:
- '**.json'
branches:
- main
- Release
pull_request:
paths:
- '**.json'
workflow_dispatch:
permissions:
contents: read
jobs:
verify-json-validation:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Validate all json files using their own $schema properties
uses: cardinalby/schema-validator-action@v3
with:
file: 'v*/*.json|*.json'
- name: Validate butane v1.4 file using associated json schema
uses: cardinalby/schema-validator-action@v3
with:
file: 'v1.4.0/testconfig.bu'
schema: 'v1.4.0/butane-v1.4.0.json'
mode: lax
- name: Validate butane v1.5 file using associated json schema
uses: cardinalby/schema-validator-action@v3
with:
file: 'v1.5.0/testconfig.bu'
schema: 'v1.5.0/butane-v1.5.0.json'
mode: lax
- name: Validate butane v1.6 file using associated json schema
uses: cardinalby/schema-validator-action@v3
with:
file: 'v1.6.0/testconfig.bu'
schema: 'v1.6.0/butane-v1.6.0.json'
mode: lax