Skip to content

Commit 17c4a70

Browse files
committed
CI: add shellcheck
Signed-off-by: Akihiro Suda <[email protected]>
1 parent 479fc9c commit 17c4a70

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/test.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,23 @@ jobs:
2121
version: v1.35
2222
args: --verbose
2323

24+
shellcheck:
25+
runs-on: ubuntu-20.04
26+
timeout-minutes: 20
27+
steps:
28+
- uses: actions/checkout@v2
29+
with:
30+
fetch-depth: 1
31+
- name: Install shellcheck
32+
run: |
33+
sudo apt-get update
34+
sudo apt-get install -y shellcheck
35+
- name: Run shellcheck (ignore SC2086)
36+
# TODO: do not ignore SC2086
37+
# SC2086: "Double quote to prevent globbing and word splitting."
38+
# https://github.com/koalaman/shellcheck/wiki/SC2086
39+
run: find . -name '*.sh' | xargs shellcheck -e SC2086
40+
2441
basic:
2542
name: Basic tests
2643
runs-on: ${{ matrix.os }}

0 commit comments

Comments
 (0)