Update config.jsonc #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Bash Lint | |
on: [push, pull_request] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Install ShellCheck | |
run: sudo apt-get install -y shellcheck | |
- name: Lint Bash scripts | |
run: | | |
find . -name "*.sh" -print0 | xargs -0 shellcheck -f gcc | tee shellcheck.log | |
if grep -q "error:" shellcheck.log; then | |
exit 1 | |
fi |