From a1accf42356d8374b02b24650e8d411a996b7632 Mon Sep 17 00:00:00 2001 From: Jesse Alama Date: Thu, 18 Dec 2025 09:13:26 +0100 Subject: [PATCH] feat(CI): add shellcheck workflow for shell scripts --- .github/workflows/shellcheck.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/shellcheck.yml diff --git a/.github/workflows/shellcheck.yml b/.github/workflows/shellcheck.yml new file mode 100644 index 00000000..a1ceb5e2 --- /dev/null +++ b/.github/workflows/shellcheck.yml @@ -0,0 +1,22 @@ +name: Shellcheck + +on: + push: + branches: + - main + paths: + - 'scripts/**/*.sh' + pull_request: + paths: + - 'scripts/**/*.sh' + workflow_dispatch: + +jobs: + shellcheck: + name: Check shell scripts + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Run shellcheck + run: find scripts -name '*.sh' -type f -print0 | xargs -0 shellcheck --severity=warning