Skip to content

Commit 341e2e6

Browse files
committed
Add github action jsonlint
1 parent 4772cba commit 341e2e6

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/validate.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Valindate JSON
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
7+
build-and-test:
8+
9+
runs-on: ubuntu-latest
10+
name: Build and test
11+
12+
steps:
13+
- uses: actions/checkout@v2
14+
- uses: bahmutov/npm-install@v1
15+
16+
- name: Install JSON lint
17+
run: npm install jsonlint -g
18+
19+
- name: Lint python snippets
20+
run: jsonlint ./snippets/python.json
21+
22+
- name: Lint XML snippets
23+
run: jsonlint ./snippets/xml.json

0 commit comments

Comments
 (0)