diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2aad1e5..a660a17 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,6 +21,8 @@ jobs: run: | corepack yarn - name: Lint + env: + SHELLCHECK_SEVERITY: warning run: | corepack yarn lint - name: Test diff --git a/package.json b/package.json index e24b779..4583945 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "yarn": "3.6.0" }, "scripts": { - "lint:shellcheck": "SEV=info; if [ \"${CI:-false}\" = \"true\" ]; then SEV=warning; fi; shellcheck --severity=${SEV} $(find . -name '*.sh' -maxdepth 2)", + "lint:shellcheck": "shellcheck --severity=${SHELLCHECK_SEVERITY:-info} $(find . -name '*.sh' -maxdepth 2)", "lint:style": "test/style.pl $(find . -name '*.sh' -maxdepth 2)", "lint": "npm-run-all -l 'lint:**'", "release:major": "env SEMANTIC=major yarn release",