commit:     5ef8876e6f7db9252ed7d7a9ff785d4bbf45c120
Author:     Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
AuthorDate: Thu Jun 30 12:46:32 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Jun 30 16:11:22 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=5ef8876e

CI: add `bash -n` check for scripts

Signed-off-by: Anna Vyalkova <cyber+gentoo <AT> sysrq.in>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .github/workflows/scripts.yml | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/.github/workflows/scripts.yml b/.github/workflows/scripts.yml
new file mode 100644
index 0000000000..e845df4160
--- /dev/null
+++ b/.github/workflows/scripts.yml
@@ -0,0 +1,19 @@
+name: scripts
+
+on:
+  push:
+    branches: [ master ]
+  pull_request:
+    branches: [ master ]
+
+jobs:
+  build:
+    runs-on: ubuntu-latest
+    steps:
+    - uses: actions/checkout@v2
+    - name: Test scripts with `bash -n`
+      run: |
+        shopt -s globstar
+        for script in scripts/**/*.sh; do
+          bash -n "${script}"
+        done

Reply via email to