mirror of
https://github.com/kvz/bash3boilerplate.git
synced 2024-12-18 14:26:22 +00:00
Easier SHELLCHECK_SEVERITY in CI
This commit is contained in:
parent
985b0046c4
commit
51e7644bb1
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -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
|
||||||
|
@ -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",
|
||||||
|
Loading…
Reference in New Issue
Block a user