Introduce shellcheck to lint shell scripts #2
Workflow file for this run
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
on: | |
push: | |
pull_request: | |
name: "Format checks" | |
permissions: {} | |
jobs: | |
shellcheck: | |
name: Shellcheck | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Run ShellCheck | |
uses: ludeeus/action-shellcheck@master | |
with: | |
# shellcheck doesn't have good support for zsh, so we're ignoring this | |
ignore_paths: >- | |
*.zsh | |
severity: error | |
- name: Run ShellCheck Warnings | |
uses: ludeeus/action-shellcheck@master | |
with: | |
ignore_paths: >- | |
./etc/completion.zsh | |
./etc/completion.bash | |
./etc/win-ci/cygwin-build-iconv.sh | |
severity: warning |