Add shell-check job

We don't want to fail on shellcheck yet.
This commit is contained in:
jo 2021-08-16 14:04:15 +02:00
parent 5cf8aaf7a1
commit 38513c3bed
2 changed files with 22 additions and 1 deletions

View File

@ -25,6 +25,27 @@ jobs:
- uses: actions/setup-python@v2
- 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:
strategy:
matrix:

View File

@ -13,4 +13,4 @@ shell-format:
shell-check:
shfmt -f . | xargs shfmt -i 2 -ci -sr -kp -d
shfmt -f . | xargs shellcheck --color=always
shfmt -f . | xargs shellcheck --color=always || true