ci: add CI/CD workflow for Bash scripts linting #1

Open
jank wants to merge 5 commits from ci into main
Showing only changes of commit 29e77c8a4c - Show all commits

View file

@ -12,15 +12,7 @@ jobs:
lint: lint:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- name: Install shellcheck - name: Run ShellCheck
run: | uses: ludeeus/action-shellcheck@master
wget https://github.com/koalaman/shellcheck/releases/latest/download/shellcheck-latest.linux.x86_64.tar.xz
tar -xvf shellcheck-latest.linux.x86_64.tar.xz
sudo mv shellcheck /usr/local/bin
rm shellcheck-latest.linux.x86_64.tar.xz
- name: Lint bash scripts
run: |
find . -type f -name "*.sh" -print0 | xargs -0 shellcheck