Explorar el Código

Merge pull request #288 from Mr-Ao-Dragon/master

配置自动检查
龙腾猫跃 hace 3 años
padre
commit
e9d003d49e
Se han modificado 2 ficheros con 22 adiciones y 0 borrados
  1. 12 0
      .github/workflows/Json-check.yml
  2. 10 0
      .github/workflows/check-yaml.yml

+ 12 - 0
.github/workflows/Json-check.yml

@@ -0,0 +1,12 @@
+name: JSON check
+run-name: JSON check
+on: [push, pull_request]
+jobs:
+  test:
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v2
+      - name: json-syntax-check
+        uses: limitusus/json-syntax-check@v2
+        with:
+          pattern: "\\.json$"

+ 10 - 0
.github/workflows/check-yaml.yml

@@ -0,0 +1,10 @@
+name: Check yaml
+run-name: Check yaml
+on: [push, pull_request]  # yamllint disable-line rule:truthy
+jobs:
+  lintAllTheThings:
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v3
+      - name: yaml-lint
+        uses: ibiqlik/action-yamllint@v3