diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 333517402..5f534545a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -44,7 +44,7 @@ jobs: shfmt_{tag}_linux_amd64 \ /usr/bin/shfmt - - run: make shell-check + - run: SEVERITY=warning make shell-check test: strategy: diff --git a/Makefile b/Makefile index fc8e65144..c2e69bef5 100644 --- a/Makefile +++ b/Makefile @@ -13,4 +13,4 @@ shell-format: shell-check: shfmt -f . | xargs shfmt -i 2 -ci -sr -kp -d - shfmt -f . | xargs shellcheck --color=always || true + shfmt -f . | xargs shellcheck --color=always --severity=$${SEVERITY:-style}