From 04a45a776573e71e258d811e8e483c07cc2474c4 Mon Sep 17 00:00:00 2001 From: Diego Resendez Date: Sat, 5 Sep 2026 16:57:28 -0500 Subject: [PATCH] ci: install shellcheck where the runner image lacks it MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The `installer` job failed on `ubuntu-latest` and passed on `macos-14`. The two legs run the same `test_install.sh`; the only difference is the shellcheck step, which is guarded to Linux — and `catthehacker/ubuntu:act-22.04`, which is what Gitea's `ubuntu-latest` maps to, does not have shellcheck. GitHub's hosted image does, so a bare `shellcheck` call is a step that passes on one forge and fails on the other, which is precisely what this file's header comment ("Lives in .github/workflows so both Gitea and GitHub run it") exists to prevent. Mine, and one commit after writing the same warning into CONTRIBUTING.md. Installed only when absent, so GitHub pays nothing for it. Verified by running the step inside the image that failed: shellcheck 0.8.0 installs and runs. Nothing else regressed — `check`, all four `starter` legs and `installer (macos-14)` were green on the same run. Signed-off-by: Diego Resendez --- .github/workflows/ci.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3de7a7b..f995648 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -88,6 +88,16 @@ jobs: os: [ubuntu-latest, macos-14] steps: - uses: actions/checkout@v4 - - run: shellcheck install.sh test_install.sh + - name: Lint the installer if: matrix.os == 'ubuntu-latest' + run: | + # GitHub's hosted image ships shellcheck. The act image Gitea's + # `ubuntu-latest` maps to (catthehacker/ubuntu:act-22.04) does not, so + # bare `shellcheck` was a step that passed on one forge and failed on + # the other — the exact forge-dependent break this file's own header + # comment exists to avoid. + if ! command -v shellcheck >/dev/null; then + sudo apt-get update -qq && sudo apt-get install -y -qq shellcheck + fi + shellcheck install.sh test_install.sh - run: ./test_install.sh