Skip to content

Commit 102cb1a

Browse files
committed
Add Shellcheck support via GitHub Actions
1 parent 215c51f commit 102cb1a

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/shellcheck.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Run ShellCheck
2+
3+
on:
4+
push:
5+
branches:
6+
- '*' # Run on all branches
7+
pull_request:
8+
branches:
9+
- '*' # Run on all branches
10+
11+
jobs:
12+
shellcheck:
13+
name: Run ShellCheck
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v3
19+
20+
- name: Install ShellCheck
21+
run: sudo apt-get install -y shellcheck
22+
23+
- name: Run ShellCheck
24+
run: |
25+
# Find all shell scripts and run shellcheck
26+
find . -name "*.sh" -print0 | xargs -0 shellcheck
27+

0 commit comments

Comments
 (0)