浏览代码

shellcheck ci

Piotr Kwiecinski 4 年之前
父节点
当前提交
4ea0d30ee0
共有 1 个文件被更改,包括 24 次插入0 次删除
  1. 24 0
      .github/workflows/shellcheck.yml

+ 24 - 0
.github/workflows/shellcheck.yml

@@ -0,0 +1,24 @@
+name: 'ShellCheck'
+
+on: 
+  push:
+    branches: ["master"]
+  pull_request:
+
+jobs:
+  shellcheck:
+    name: shellcheck
+    runs-on: ubuntu-latest
+    steps:
+
+    - name: Checkout
+      uses: actions/checkout@v2
+
+    - name: Run ShellCheck
+      uses: ludeeus/action-shellcheck@master
+      id: check
+      env:
+        SHELLCHECK_OPTS: -x -e SC2181 -P compose/bin -P compose/env
+      with:
+        check_together: true
+        scandir: './compose/bin'