From afb0292ea40ada5fb8a0896acf81009a6b58fe55 Mon Sep 17 00:00:00 2001 From: Waleed Judah Date: Sat, 7 Jun 2025 03:56:11 -0400 Subject: [PATCH] ci: fix shellcheck install on mac/windows --- .github/workflows/ci.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 86e3c95..ed911c3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,7 +16,15 @@ jobs: steps: - uses: actions/checkout@v3 - name: Install dependencies - run: sudo apt-get update && sudo apt-get install -y shellcheck + run: | + if [[ "$RUNNER_OS" == "Linux" ]]; then + sudo apt-get update + sudo apt-get install -y shellcheck + elif [[ "$RUNNER_OS" == "macOS" ]]; then + brew install shellcheck + elif [[ "$RUNNER_OS" == "Windows" ]]; then + choco install -y shellcheck + fi - name: Lint Shell Scripts run: shellcheck tests/*.sh - name: Build