Skip to content

Commit 1c9cfd0

Browse files
bug:Install shellcheck wget (#2173)
Installs shellcheck via wget of github release for 'stable' linux version
1 parent 00062bf commit 1c9cfd0

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,17 @@ jobs:
4949
uses: actions/setup-python@v2
5050
with:
5151
python-version: 3.8
52+
# - name: Update APT Package Lists
53+
# run: sudo apt-get update
5254
- name: Install shfmt
5355
run: GO111MODULE=on go get mvdan.cc/sh/v3/cmd/shfmt
5456
- name: Install shellcheck
55-
run: brew install shellcheck
57+
env:
58+
scversion: stable # Or latest, vxx, etc
59+
run: |
60+
wget -qO- "https://github.com/koalaman/shellcheck/releases/download/${scversion?}/shellcheck-${scversion?}.linux.x86_64.tar.xz" | tar -xJv "shellcheck-${scversion}/shellcheck"
61+
sudo cp "shellcheck-${scversion}/shellcheck" /usr/bin/
62+
shellcheck --version
5663
- name: Install pre-commit
5764
run: python3 -m pip install -r test/lint-requirements.txt
5865
- name: Run lint

0 commit comments

Comments
 (0)