Skip to content

ci: run tap validation on workflow changes and on demand - #51

Merged
nimish-ks merged 1 commit into
mainfrom
ci/run-on-workflow-changes
Oct 3, 2026
Merged

nimish-ks merged 1 commit into
mainfrom
ci/run-on-workflow-changes

Conversation

@nimish-ks

Copy link
Copy Markdown
Member

Summary

Tap validation only ran when phase.rb changed. As a result, #50 (new macOS runner list) ran no CI on the PR or on main, and the new runners would first run during the next release.

  • Workflow file added to the paths filters for push and pull_request. Changes to this workflow now test themselves, starting with this PR.

  • workflow_dispatch added so the validation can be run from the Actions tab at any time, for example after GitHub moves macos-latest to a new image.

  • Install step conditions updated to cover manual runs:

    Trigger Installs from
    pull_request the PR's phase.rb
    push to main the tap
    workflow_dispatch on main the tap
    workflow_dispatch on another branch that branch's phase.rb

    Previously a manual run would have skipped both install steps and failed at the version check.

  • fail-fast: false, so one failing runner doesn't cancel the rest and every OS/arch result is visible.

Testing

This PR touches the workflow file, so it triggers the full five-runner validation (macos-15, macos-15-intel, macos-26, macos-26-intel, macos-latest) against the current phase.rb.

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.
@nimish-ks
nimish-ks merged commit b669aa4 into main Oct 3, 2026
5 checks passed
@nimish-ks
nimish-ks deleted the ci/run-on-workflow-changes branch October 3, 2026 03:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant