BrewTestBot

brew test-bot is Homebrew’s continuous-integration orchestration command, originally funded by our Kickstarter in 2013. Homebrew’s GitHub Actions workflows run it on macOS and Linux runners to build bottles and test the lifecycle of changes to Homebrew and its taps. The workflow definitions are the authoritative description of the current runner and job configuration. The workflow generated by brew tap-new checks tap syntax on pull requests and pushes to the default branch. On pull requests it also detects changed packages once per runner and passes the formula and cask lists to their respective test steps. Run brew test-bot --only-casks --tap=user/tap token to fetch, audit, install and uninstall a checked-out cask on a supported platform. Core formula dependencies use the API by default. Core cask dependencies use the local homebrew/cask checkout when present and the API when it is absent. Formula and cask tests retry downloads and force a fresh download in GitHub Actions or with --cleanup. With --skip-online-checks, both use brew audit --strict for new packages by default. Use brew test-bot --only-packages-detect to report added, modified and deleted formulae and casks without installing them. In GitHub Actions it writes testing_formulae, added_formulae, deleted_formulae and the corresponding cask lists to GITHUB_OUTPUT. The older --only-formulae-detect spelling is an alias for --only-packages-detect. Homebrew/core passes its formula lists to brew determine-test-runners. Homebrew/cask runs brew determine-test-runners --cask "$TESTING_CASKS" "$ADDED_CASKS" and supplies the pull request URL with --url to apply CI labels. Each runner passes its --testing-casks and --added-casks lists to brew test-bot --only-casks. It fetches and audits each cask, tests installation and uninstallation and on macOS checks the zap stanza and looks for leftover files and services. The ci-skip-install label passes --skip-install to the selected jobs. These jobs run only the fetch and audit steps, skipping installation, uninstallation and the macOS post-install checks. The ci-skip-livecheck label passes --skip-livecheck to skip livecheck while keeping the other online audits.

Pull requests

The bot automatically builds pull requests and updates their status depending on the result of the job.

For example, a job which has been queued but not yet completed will have a section in the pull request that looks like this:

Triggered Pull Request


A failed build looks like this:

Failed Pull Request


A passed build that’s been approved to merge looks like this:

Passed Pull Request


On failed or passed builds you can click the “Details” link for each check to view its output in GitHub Actions.