Skip to content

Commit 4bf318e

Browse files
committed
ci: add ShellCheck workflow for shell script linting
- Introduced a GitHub Actions workflow to run ShellCheck on all .sh files - Ensures shell scripts follow best practices and common standards - Helps catch syntax errors, quoting issues, and style problems early This improves code quality and enforces consistency in shell script contributions. Signed-off-by: Srikanth Muppandam <[email protected]>
1 parent ec8d3f1 commit 4bf318e

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/shellcheck.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Shell Lint
2+
3+
on: [pull_request, push]
4+
5+
jobs:
6+
shellcheck:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v3
10+
- name: Install ShellCheck
11+
run: sudo apt-get install -y shellcheck
12+
- name: Run ShellCheck
13+
run: |
14+
find . -name '*.sh' -exec shellcheck {} +
15+

0 commit comments

Comments
 (0)