Skip to content

Commit 31a6355

Browse files
committed
chore: Shall ScriptのLintを追加
1 parent 540e083 commit 31a6355

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

.github/workflows/lint.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Shell Script Lint
2+
3+
on: [push]
4+
5+
jobs:
6+
lint:
7+
name: Lint Shell scripts with ShellCheck
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v4
13+
14+
- name: Install ShellCheck
15+
run: sudo apt install -y shellcheck
16+
17+
- name: Run ShellCheck
18+
shell: bash
19+
run: |
20+
shopt -s globstar
21+
shellcheck ./install.sh ./scripts/**/*.sh

0 commit comments

Comments
 (0)