Run pre-connect hooks before building

They might be needed for remote builds or the pre-build hook.
This commit is contained in:
Donal McBreen
2025-05-14 15:55:54 +01:00
parent 031f55ecf7
commit 2c1d6ed891
2 changed files with 5 additions and 0 deletions

View File

@@ -21,6 +21,7 @@ class CliBuildTest < CliTestCase
.returns("")
run_command("push", "--verbose").tap do |output|
assert_hook_ran "pre-connect", output
assert_hook_ran "pre-build", output
assert_match /Cloning repo into build directory/, output
assert_match /git -C #{Dir.tmpdir}\/kamal-clones\/app-#{pwd_sha} clone #{Dir.pwd}/, output