Skip to content

Commit 0f8447b

Browse files
leggetterclaude
andcommitted
ci(test-homebrew-build): validate hookdeck-beta.rb instead of hookdeck.rb
The GoReleaser brews block now produces `hookdeck-beta.rb` only (the stable `hookdeck` formula lives in homebrew-core). The test-homebrew-build CI was still validating `dist/homebrew/Formula/hookdeck.rb`, which no longer exists. Updates: - `test-scripts/test-homebrew-build.sh`: validate_formula now reads `hookdeck-beta.rb`; the install-test path (gated by `--install` flag, workflow_dispatch only) targets the `hookdeck-beta` formula name. - `.github/workflows/test-homebrew-build.yml`: upload artifact path updated to `hookdeck-beta.rb`. Verified locally: `./test-scripts/test-homebrew-build.sh` exits 0. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 6f09f53 commit 0f8447b

2 files changed

Lines changed: 9 additions & 7 deletions

File tree

.github/workflows/test-homebrew-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,5 @@ jobs:
5353
with:
5454
name: homebrew-files
5555
path: |
56-
dist/homebrew/Formula/hookdeck.rb
56+
dist/homebrew/Formula/hookdeck-beta.rb
5757
retention-days: 7

test-scripts/test-homebrew-build.sh

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,11 @@ run_goreleaser_build() {
170170

171171
# Validate Homebrew formula file
172172
validate_formula() {
173-
echo_section "Validating Formula (dist/homebrew/Formula/hookdeck.rb)"
174-
175-
local formula_file="dist/homebrew/Formula/hookdeck.rb"
173+
echo_section "Validating Formula (dist/homebrew/Formula/hookdeck-beta.rb)"
174+
175+
# Stable releases of `hookdeck` now go to homebrew-core; the third-party
176+
# tap publishes only `hookdeck-beta` on pre-release tags.
177+
local formula_file="dist/homebrew/Formula/hookdeck-beta.rb"
176178

177179
if [ ! -f "$formula_file" ]; then
178180
echo_error "Formula file not found at $formula_file"
@@ -298,7 +300,7 @@ setup_local_tap() {
298300

299301
# Patch formula to use local file:// URLs for testing
300302
echo_info "Patching formula to use local file URLs for testing..."
301-
local formula_file="$LOCAL_TAP_PATH/Formula/hookdeck.rb"
303+
local formula_file="$LOCAL_TAP_PATH/Formula/hookdeck-beta.rb"
302304
local current_dir="$(pwd)"
303305

304306
# Replace GitHub URLs with local file:// URLs
@@ -320,8 +322,8 @@ setup_local_tap() {
320322
test_formula_installation() {
321323
echo_section "Testing Formula Installation"
322324

323-
local tap_name="hookdeck-test/hookdeck-test/hookdeck"
324-
325+
local tap_name="hookdeck-test/hookdeck-test/hookdeck-beta"
326+
325327
echo_info "Installing formula: brew install $tap_name"
326328
if brew install "$tap_name"; then
327329
echo_success "Formula installed successfully"

0 commit comments

Comments
 (0)