]> xenbits.xensource.com Git - unikraft/unikraft.git/commitdiff
.github/workflows: Add shellcheck for scripts 1133/head
authorCezar Craciunoiu <cezar.craciunoiu@gmail.com>
Sat, 14 Oct 2023 08:09:35 +0000 (11:09 +0300)
committerCezar Craciunoiu <cezar.craciunoiu@gmail.com>
Thu, 2 Nov 2023 15:31:07 +0000 (17:31 +0200)
Signed-off-by: Cezar Craciunoiu <cezar.craciunoiu@gmail.com>
.github/workflows/shellcheck.yaml [new file with mode: 0644]

diff --git a/.github/workflows/shellcheck.yaml b/.github/workflows/shellcheck.yaml
new file mode 100644 (file)
index 0000000..fa506d5
--- /dev/null
@@ -0,0 +1,33 @@
+name: shellcheck
+
+on:
+  push:
+    branches: [staging, stable]
+    paths:
+      - 'support/scripts/**'
+      - '.github/workflows/shellcheck.yaml'
+
+  pull_request:
+    types: [opened, synchronize, reopened]
+    branches: [staging]
+    paths:
+      - 'support/scripts/**'
+      - '.github/workflows/shellcheck.yaml'
+
+permissions: {}
+
+jobs:
+  shellcheck:
+    name: Shellcheck
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v3
+
+      - name: Run ShellCheck
+        uses: ludeeus/action-shellcheck@master
+        env:
+          SHELLCHECK_OPTS: -s bash
+        with:
+          severity: warning
+          scandir: support/scripts
+          format: tty
\ No newline at end of file