Add shell-check job
We don't want to fail on shellcheck yet.
This commit is contained in:
parent
5cf8aaf7a1
commit
38513c3bed
2 changed files with 22 additions and 1 deletions
21
.github/workflows/test.yml
vendored
21
.github/workflows/test.yml
vendored
|
@ -25,6 +25,27 @@ jobs:
|
||||||
- uses: actions/setup-python@v2
|
- uses: actions/setup-python@v2
|
||||||
- uses: pre-commit/action@v2.0.3
|
- uses: pre-commit/action@v2.0.3
|
||||||
|
|
||||||
|
check-shell:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: actions/setup-python@v2
|
||||||
|
- run: |
|
||||||
|
python -m venv venv && source venv/bin/activate
|
||||||
|
pip install gh-release-install
|
||||||
|
|
||||||
|
sudo venv/bin/gh-release-install \
|
||||||
|
koalaman/shellcheck \
|
||||||
|
shellcheck-{tag}.linux.x86_64.tar.xz --extract shellcheck-{tag}/shellcheck \
|
||||||
|
/usr/bin/shellcheck
|
||||||
|
|
||||||
|
sudo venv/bin/gh-release-install \
|
||||||
|
mvdan/sh \
|
||||||
|
shfmt_{tag}_linux_amd64 \
|
||||||
|
/usr/bin/shfmt
|
||||||
|
|
||||||
|
- run: make shell-check
|
||||||
|
|
||||||
test:
|
test:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
|
|
2
Makefile
2
Makefile
|
@ -13,4 +13,4 @@ shell-format:
|
||||||
|
|
||||||
shell-check:
|
shell-check:
|
||||||
shfmt -f . | xargs shfmt -i 2 -ci -sr -kp -d
|
shfmt -f . | xargs shfmt -i 2 -ci -sr -kp -d
|
||||||
shfmt -f . | xargs shellcheck --color=always
|
shfmt -f . | xargs shellcheck --color=always || true
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue