和上个提交类似,此actions配置文件让github自动检查语法。
@@ -0,0 +1,17 @@
+name: JSON check
+run-name: JSON check
+on:
+ push:
+ paths:
+ - '**.json'
+ pull_request:
+ branches: master
+jobs:
+ test:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - name: json-syntax-check
+ uses: limitusus/json-syntax-check@v2
+ with:
+ pattern: "\\.json$"