From 4638f663f5eda00355aed0d3cb8ded69b7313190 Mon Sep 17 00:00:00 2001 From: Menefail Date: Tue, 6 Jan 2026 11:26:07 +0100 Subject: [PATCH] Create shellcheck.yml Adds a GitHub Actions workflow that runs ShellCheck on every .sh script in pull requests, catching common shell script issues. --- .github/workflows/shellcheck.yml | 21 +++++++++++++++++++++ 1 file changed, 21 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..a093bc82 --- /dev/null +++ b/.github/workflows/shellcheck.yml @@ -0,0 +1,21 @@ +```yaml +name: ShellCheck + +on: + pull_request: + paths: + - "**/*.sh" + - ".github/workflows/shellcheck.yml" + +jobs: + shellcheck: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Install ShellCheck + run: | + sudo apt-get update + sudo apt-get install -y shellcheck + - name: Run ShellCheck + run: | + find . -type f -name '*.sh' -exec shellcheck {} +