Easier SHELLCHECK_SEVERITY in CI

This commit is contained in:
Kevin van Zonneveld 2023-08-29 12:48:33 +02:00
parent 985b0046c4
commit 51e7644bb1
No known key found for this signature in database
GPG Key ID: 5E20B81008764DF4
2 changed files with 3 additions and 1 deletions

View File

@ -21,6 +21,8 @@ jobs:
run: | run: |
corepack yarn corepack yarn
- name: Lint - name: Lint
env:
SHELLCHECK_SEVERITY: warning
run: | run: |
corepack yarn lint corepack yarn lint
- name: Test - name: Test

View File

@ -8,7 +8,7 @@
"yarn": "3.6.0" "yarn": "3.6.0"
}, },
"scripts": { "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:style": "test/style.pl $(find . -name '*.sh' -maxdepth 2)",
"lint": "npm-run-all -l 'lint:**'", "lint": "npm-run-all -l 'lint:**'",
"release:major": "env SEMANTIC=major yarn release", "release:major": "env SEMANTIC=major yarn release",