Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 74b6d75

Browse files
yarikopticeffigies
authored andcommitted
Add github action to shellcheck master on push and PRs
1 parent 0c67bb3 commit 74b6d75

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

‎.github/workflows/shellcheck.yml

Lines changed: 24 additions & 0 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /