Skip to main content

Run it

This writes .git/hooks/pre-push in the repository. The hook runs box test and stops the push when the tests fail. Its own words, from the CLI source:
What that test run prints, from job bj_FsKyhQhqbroz8BoM:

What it costs

$0.05 per minute of build and test time on iOS, every started minute, and only when a push runs the tests.

How else people do this

GitHub-hosted macOS runners cost 10 times the Linux per-minute rate (https://docs.github.com/en/billing/reference/actions-runner-pricing). A pre-push test does not replace the runner. It stops failed pushes from using it. Apple, Mac, macOS, iPhone, Xcode, Swift and SwiftUI are trademarks of Apple Inc., registered in the U.S. and other countries and regions. box is an independent service and is not affiliated with, sponsored or endorsed by Apple Inc.