-
Notifications
You must be signed in to change notification settings - Fork 2
52 lines (50 loc) · 1.14 KB
/
json-checks.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
52
name: JSON checks
on:
push:
branches:
- master
paths:
- '**.json'
- '.github/workflows/json-checks.yml'
pull_request:
paths:
- '**.json'
- '.github/workflows/json-checks.yml'
jobs:
syntax:
name: Validate JSON syntax
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: json-syntax-check
uses: limitusus/json-syntax-check@v2
with:
pattern: "\\.json$"
keys:
name: Validate JSON unique keys
runs-on: ubuntu-22.04
needs: syntax
steps:
- uses: actions/checkout@v4
- name: check-keys
run: make duplicates
schema:
name: Validate JSON schema
runs-on: ubuntu-22.04
needs: syntax
steps:
- uses: actions/checkout@v4
- name: install-deps
run: make schema-check-deps
- name: check-json-schema
run: make schema-check
whitespace:
name: "Check for whitespace errors"
runs-on: ubuntu-22.04
needs: syntax
steps:
- uses: actions/checkout@v4
- name: install-deps
run: make whitespace-deps
- name: check-whitespace
run: make whitespace