1 |
commit: 5ef8876e6f7db9252ed7d7a9ff785d4bbf45c120 |
2 |
Author: Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in> |
3 |
AuthorDate: Thu Jun 30 12:46:32 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jun 30 16:11:22 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=5ef8876e |
7 |
|
8 |
CI: add `bash -n` check for scripts |
9 |
|
10 |
Signed-off-by: Anna Vyalkova <cyber+gentoo <AT> sysrq.in> |
11 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
12 |
|
13 |
.github/workflows/scripts.yml | 19 +++++++++++++++++++ |
14 |
1 file changed, 19 insertions(+) |
15 |
|
16 |
diff --git a/.github/workflows/scripts.yml b/.github/workflows/scripts.yml |
17 |
new file mode 100644 |
18 |
index 0000000000..e845df4160 |
19 |
--- /dev/null |
20 |
+++ b/.github/workflows/scripts.yml |
21 |
@@ -0,0 +1,19 @@ |
22 |
+name: scripts |
23 |
+ |
24 |
+on: |
25 |
+ push: |
26 |
+ branches: [ master ] |
27 |
+ pull_request: |
28 |
+ branches: [ master ] |
29 |
+ |
30 |
+jobs: |
31 |
+ build: |
32 |
+ runs-on: ubuntu-latest |
33 |
+ steps: |
34 |
+ - uses: actions/checkout@v2 |
35 |
+ - name: Test scripts with `bash -n` |
36 |
+ run: | |
37 |
+ shopt -s globstar |
38 |
+ for script in scripts/**/*.sh; do |
39 |
+ bash -n "${script}" |
40 |
+ done |