Skip to content

Commit c67c8c2

Browse files
committed
Add actions to run shellcheck
1 parent ab52fe6 commit c67c8c2

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/main.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
on:
2+
push:
3+
branches:
4+
- master
5+
pull_request:
6+
branches:
7+
- master
8+
9+
name: "Shellcheck"
10+
env:
11+
VERSION: v0.8.0
12+
13+
jobs:
14+
shellcheck:
15+
name: Shellcheck
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v2
19+
- name: Install shellcheck
20+
run: |
21+
wget -q https://github.com/koalaman/shellcheck/releases/download/$VERSION/shellcheck-$VERSION.linux.x86_64.tar.xz \
22+
-O shellcheck.tar.xz
23+
tar -xf shellcheck.tar.xz
24+
mv shellcheck-$VERSION/shellcheck .
25+
rm -rf shellcheck.tar.xz shellcheck-$VERSION
26+
27+
- name: Run Shellcheck
28+
run: |
29+
./shellcheck --version
30+
./shellcheck -e SC2148 wt completions/*

0 commit comments

Comments
 (0)