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