CI: add super-linter for pull requests
authorPaul Spooren <mail@aparcar.org>
Thu, 10 Sep 2020 18:53:22 +0000 (08:53 -1000)
committerPaul Spooren <mail@aparcar.org>
Mon, 14 Sep 2020 21:05:33 +0000 (11:05 -1000)
This commit adds a linter which checks most common filetypes, including
Shell and Lua. Ideally this improves the quality of especially `init`
scripts written in Shell.

Signed-off-by: Paul Spooren <mail@aparcar.org>
.github/workflows/linter.yml [new file with mode: 0644]

diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml
new file mode 100644 (file)
index 0000000..1b1ed93
--- /dev/null
@@ -0,0 +1,22 @@
+name: Lint Pull Request
+
+# Documentation:
+# https://github.com/github/super-linter
+on:
+  pull_request:
+    branches: [master]
+jobs:
+  build:
+    name: Lint Code Base
+    runs-on: ubuntu-latest
+    steps:
+      - name: Checkout Code
+        uses: actions/checkout@v2
+
+      - name: Lint Code Base
+        uses: github/super-linter@v3
+        env:
+          VALIDATE_ALL_CODEBASE: false
+          DEFAULT_BRANCH: master
+          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}