Skip to content
This repository was archived by the owner on Sep 12, 2024. It is now read-only.

Commit 83f1bde

Browse files
committed
add json lint actions
1 parent 322d9db commit 83f1bde

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/jsonlint.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Check Json format
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout
10+
uses: actions/checkout@v2.2.0
11+
- name: Install node
12+
run: |
13+
sudo apt install nodejs
14+
- name: Install jsonlint
15+
run: |
16+
sudo npm install -g jsonlint
17+
- name: Lint with jsonlint
18+
run: |
19+
for file in $(find $(git diff -U0 master --name-only) -iname "*.json"); do npx jsonlint $file; done

0 commit comments

Comments
 (0)