-
Notifications
You must be signed in to change notification settings - Fork 839
37 lines (33 loc) · 1.06 KB
/
validate.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
on: [pull_request, workflow_dispatch]
name: Validate JSON schema
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: scheduleonce/[email protected]
name: Validating filenames
with:
path: '!(*.schema.json|README*|.gitignore)'
pattern: '^[a-zA-Z0-9._-]*[^\.]$'
- name: Validate profile.json schema
uses: walbo/[email protected]
with:
files: ./*/profile.json
schema: profile.schema.json
schema-version: draft-07
fail-on-missing-schema: true
- name: Validate chains.json schema
uses: walbo/[email protected]
with:
files: ./*/chains.json
schema: chains.schema.json
schema-version: draft-07
fail-on-missing-schema: true
- name: Validate services.json schema
uses: walbo/[email protected]
with:
files: ./*/services.json
schema: services.schema.json
schema-version: draft-07
fail-on-missing-schema: true