Skip to content

Commit 00145be

Browse files
committed
Add github action to shellcheck master on push and PRs
1 parent cdfe679 commit 00145be

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/shellcheck.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
name: Shellcheck
3+
4+
on:
5+
push:
6+
branches: [master]
7+
pull_request:
8+
branches: [master]
9+
10+
jobs:
11+
shellcheck:
12+
name: Check shell scripts
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v3
18+
- name: Install dependencies
19+
run: |
20+
sudo apt update && sudo apt install -y shellcheck
21+
22+
- name: shellcheck
23+
run: |
24+
git grep -l '^#!\(/bin/\|/usr/bin/env \)\(sh\|bash\|dash\|ksh\)' | xargs shellcheck

0 commit comments

Comments
 (0)