Skip to content

ci: add lightweight brew style + audit on PRs#5

Merged
Dumbris merged 2 commits into
mainfrom
ci/brew-style-audit
Jul 2, 2026
Merged

ci: add lightweight brew style + audit on PRs#5
Dumbris merged 2 commits into
mainfrom
ci/brew-style-audit

Conversation

@Dumbris

@Dumbris Dumbris commented Jul 2, 2026

Copy link
Copy Markdown
Member

What

This tap had no CI — nothing machine-verified cask/formula changes (statusCheckRollup was empty on PRs). This adds a minimal GitHub Actions workflow (.github/workflows/brew-test.yml) that, on every pull_request and push to main (plus workflow_dispatch):

  • runs on macos-latest (casks are macOS-only),
  • sets up Homebrew via Homebrew/actions/setup-homebrew@master,
  • taps the checked-out repo, then runs brew style and brew audit --online against the cask and formula.

Deliberately lightweight: no brew install, no bottling, no full brew test-bot run. 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

  • The current cask may surface pre-existing, cosmetic brew style offenses on newer Homebrew (stanza order / hash alignment / single-element array — all --fix-able via brew 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 .rb files).
  • brew audit --online hits the network to verify the release url/sha256. If it proves flaky in practice, the audit steps can be switched to offline (drop --online).

Please review; not merging myself.

Algis Dumbris 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.
@Dumbris Dumbris merged commit 9f130bd into main Jul 2, 2026
1 check passed
@Dumbris Dumbris deleted the ci/brew-style-audit branch July 2, 2026 07:11
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