Skip to content

Commit 6b77355

Browse files
authored
Merge pull request #329 from WyriHaximus/add-json-lint
Add JSON lint
2 parents 4da4328 + db9144a commit 6b77355

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ jobs:
88
runs-on: ubuntu-latest
99
needs:
1010
- lint-yaml
11+
- lint-json
1112
outputs:
1213
version: ${{ steps.supported-versions-matrix.outputs.version }}
1314
steps:
@@ -37,6 +38,7 @@ jobs:
3738
composer: [lowest, current, highest]
3839
needs:
3940
- lint-yaml
41+
- lint-json
4042
- supported-versions-matrix
4143
runs-on: ubuntu-latest
4244
container:
@@ -66,6 +68,7 @@ jobs:
6668
check: ${{ fromJson(needs.supported-checks-matrix.outputs.check) }}
6769
needs:
6870
- lint-yaml
71+
- lint-json
6972
- composer-install
7073
- supported-checks-matrix
7174
- supported-versions-matrix
@@ -100,6 +103,7 @@ jobs:
100103
runs-on: ubuntu-latest
101104
needs:
102105
- lint-yaml
106+
- lint-json
103107
steps:
104108
- name: Checkout
105109
uses: actions/checkout@v2
@@ -142,10 +146,19 @@ jobs:
142146
line-length: disable
143147
document-start: disable
144148
truthy: disable
149+
lint-json:
150+
runs-on: ubuntu-latest
151+
steps:
152+
- uses: actions/checkout@v1
153+
- name: json-syntax-check
154+
uses: limitusus/json-syntax-check@v1
155+
with:
156+
pattern: "\\.json$"
145157
check-mark:
146158
name: ✔️
147159
needs:
148160
- lint-yaml
161+
- lint-json
149162
- qa
150163
- qodana
151164
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)