From 7921fabaed71e8754a6b9a3aaabc2d05f9580209 Mon Sep 17 00:00:00 2001 From: Nimish Date: Sat, 3 Oct 2026 08:53:46 +0530 Subject: [PATCH] ci: run tap validation on workflow changes and on demand The workflow only triggered on phase.rb changes, so edits to the workflow itself (like the runner matrix update in #50) never ran until the next release. Add the workflow file to the path filters and add workflow_dispatch for manual runs. Manual runs install from the tap on main and from the checked-out formula on any other branch. Disable fail-fast so one failing runner doesn't cancel the others. --- .github/workflows/cli-package-test.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cli-package-test.yml b/.github/workflows/cli-package-test.yml index 78e8efd..1c53276 100644 --- a/.github/workflows/cli-package-test.yml +++ b/.github/workflows/cli-package-test.yml @@ -5,15 +5,19 @@ on: branches: [main] paths: - "phase.rb" + - ".github/workflows/cli-package-test.yml" pull_request: paths: - "phase.rb" + - ".github/workflows/cli-package-test.yml" + workflow_dispatch: jobs: homebrew-tap-validation: name: Validate on ${{ matrix.os }} runs-on: ${{ matrix.os }} strategy: + fail-fast: false matrix: os: [macos-15, macos-15-intel, macos-26, macos-26-intel, macos-latest] @@ -38,15 +42,15 @@ jobs: fi brew update - - name: Install CLI from local formula (PRs only) - if: github.event_name == 'pull_request' + - name: Install CLI from local formula (PRs and non-main branches) + if: github.event_name == 'pull_request' || github.ref != 'refs/heads/main' run: | mkdir -p "$(brew --repo phasehq/cli)/Formula" cp ./phase.rb "$(brew --repo phasehq/cli)/Formula/phase.rb" brew install --build-from-source phasehq/cli/phase - name: Install CLI from tap (main branch only) - if: github.event_name == 'push' && github.ref == 'refs/heads/main' + if: github.event_name != 'pull_request' && github.ref == 'refs/heads/main' run: | brew install phasehq/cli/phase