ci: add lightweight brew style + audit on PRs#5
Merged
Conversation
added 2 commits
July 2, 2026 06:39
Adds a macos-latest GitHub Actions job that taps the checked-out repo and runs brew style + brew audit --online against the cask and formula on every pull_request and push to main. This machine-verifies cask/formula changes (url/sha256, stanza style) without the heavy brew test-bot bottling pipeline (no install, no bottling).
brew rejects `brew tap <name> <path>` for a named tap with a remote mismatch on the runner; symlinking the checkout into the Taps directory lets brew style/audit operate on the PR's files reliably.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
This tap had no CI — nothing machine-verified cask/formula changes (
statusCheckRollupwas empty on PRs). This adds a minimal GitHub Actions workflow (.github/workflows/brew-test.yml) that, on everypull_requestandpushtomain(plusworkflow_dispatch):Homebrew/actions/setup-homebrew@master,brew styleandbrew audit --onlineagainst the cask and formula.Deliberately lightweight: no
brew install, no bottling, no fullbrew test-botrun. The goal is a fast style + url/sha256 gate so cask/formula edits are machine-verified going forward. Follow-up to the #3 / #4 cask cleanups.Caveats / expected findings
brew styleoffenses on newer Homebrew (stanza order / hash alignment / single-element array — all--fix-able viabrew style --fix Casks/mcpproxy.rb). These are not introduced by this PR; the gate simply now makes them visible. A maintainer can clean them up in a follow-up (this PR intentionally does not touch the cask/formula.rbfiles).brew audit --onlinehits the network to verify the releaseurl/sha256. If it proves flaky in practice, the audit steps can be switched to offline (drop--online).Please review; not merging myself.