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