Cut GitHub Actions macOS minutes with a test before you push
GitHub bills macOS minutes at 10 times the Linux rate (https://docs.github.com/en/billing/reference/actions-runner-pricing), and an agent that pushes on every change spends those minutes on builds that fail. Running the tests before the push means a failing change never reaches the runner.
Run it
box setup --pre-push
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:
box: pre-push: running box test before the push (skip once: git push --no-verify)box: pre-push: the tests failed, so the push was stopped. Fix them and push again, or push anyway with: git push --no-verify
What that test run prints, from job bj_FsKyhQhqbroz8BoM:
Test Suite 'All tests' passed at 2026-11-28 03:05:14.925.** TEST EXECUTE SUCCEEDED **box: tests 1 passed, 0 failedbox: bj_FsKyhQhqbroz8BoM succeeded, 120s billed, $0.10
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.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"XenoCI Box","description":"XenoCI Box runs the iOS and Android builds, tests and screenshots of your coding agent on real machines","colors":{"primary":"#393C00","light":"#393C00","dark":"#393C00"},"logo":{"light":"https://mintcdn.com/xenoci/5K0lU7MNCvKvzp7d/logo/light.svg?fit=max\u0026auto=format\u0026n=5K0lU7MNCvKvzp7d\u0026q=85\u0026s=fa1d99df5d58dc3cb333cf076ccfd4ee","dark":"https://mintcdn.com/xenoci/5K0lU7MNCvKvzp7d/logo/light.svg?fit=max\u0026auto=format\u0026n=5K0lU7MNCvKvzp7d\u0026q=85\u0026s=fa1d99df5d58dc3cb333cf076ccfd4ee","href":"https://xenoci.com"},"favicon":"https://mintcdn.com/xenoci/5K0lU7MNCvKvzp7d/favicon.svg?fit=max\u0026auto=format\u0026n=5K0lU7MNCvKvzp7d\u0026q=85\u0026s=e0c4e3ae766cd443f16e29970126660e","appearance":{"default":"light","strict":true},"background":{"color":{"light":"#F5F5F5","dark":"#F5F5F5"}},"navbar":{"primary":{"type":"button","label":"Agent setup","href":"/setup"}},"footer":{"socials":{"x":"https://x.com/xenoci_dev","threads":"https://www.threads.com/@xenoci_dev","instagram":"https://www.instagram.com/xenoci_dev"}},"search":{"prompt":"Search the XenoCI Box docs"},"seo":{"metatags":{"og:image":"/og.png","canonical":"https://docs.xenoci.com"},"indexing":"navigable"},"fonts":{"family":"IBM Plex Sans"},"styling":{"codeblocks":"system","latex":true},"contextual":{"options":["copy","cursor","claude"],"display":"header"},"navigation":{"global":{"anchors":[{"anchor":"Status","icon":"signal-bars","href":"https://status.xenoci.com"},{"anchor":"Pricing","icon":"dollar-sign","href":"/reference/pricing"},{"anchor":"Agent setup","icon":"square-terminal","href":"/setup"},{"anchor":"Support","icon":"bell-concierge","href":"/support"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"xenoci","hasAudioNarration":false,"actualSubdomain":"xenoci","customDomains":["docs.xenoci.com"],"gitSource":{"type":"github","owner":"xeno-ci","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"","_id":"6b0bda385f25efb7cd1437a6"},"entitlements":{},"buildId":"6b0bea5fc70702786ae49beb","clientVersion":"0.0.4344","searchFilterCounts":[{"language":"default","tag":"Guides","count":18},{"language":"default","tag":"iOS","count":13},{"language":"default","tag":"Reference","count":12},{"language":"default","tag":"Agents","count":8},{"language":"default","tag":"Build and test","count":8},{"language":"default","tag":"Drive the app","count":7},{"language":"default","tag":"Android","count":6},{"language":"default","tag":"Connect your agent","count":5},{"language":"default","tag":"Get started","count":4},{"language":"default","tag":"What your agent uses","count":3}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":":root{--component-border: rgba(24, 24, 22, 0.1);--component-surface: #fff}.steps [data-component-part=\"step-number\"]{margin-left:-12px}.steps [data-component-part=\"step-indicator\"]{width:1.5rem;height:1.5rem;background-color:var(--component-surface);box-shadow:inset 0 0 0 1px var(--component-border)}.steps [data-component-part=\"step-line\"]{top:2.5rem;height:calc(100% - 2.5rem);background-color:var(--component-border)}#content [data-component-part=\"step-title\"]{font-size:1rem;line-height:1.5rem;margin-bottom:0.75rem}"}]}
{"page":{"pagePath":"guides/cut-macos-minutes","slug":"/guides/cut-macos-minutes","pageMetadata":{"title":"Cut GitHub Actions macOS minutes with a test before you push","description":"GitHub bills macOS minutes at 10 times the Linux rate (https://docs.github.com/en/billing/reference/actions-runner-pricing), and an agent that pushes on every change spends those minutes on builds that fail. Running the tests before the push means a failing change never reaches the runner.","icon":"book-open","href":"/guides/cut-macos-minutes"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n a: \"a\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.p, {\n children: [\"GitHub bills macOS minutes at 10 times the Linux rate (\", _jsx(_components.a, {\n href: \"https://docs.github.com/en/billing/reference/actions-runner-pricing\",\n children: \"https://docs.github.com/en/billing/reference/actions-runner-pricing\"\n }), \"), and an agent that pushes on every change spends those minutes on builds that fail. Running the tests before the push means a failing change never reaches the runner.\"]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,..._provideComponents(),...props.components},{CodeBlock,Heading}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`run-it`,children:`Run it`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`box setup --pre-push`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[`This writes `,_jsx(_components.code,{children:`.git/hooks/pre-push`}),` in the repository. The hook runs `,_jsx(_components.code,{children:`box test`}),` and stops the push when the tests fail. Its own words, from the CLI source:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`box: pre-push: running box test before the push (skip once: git push --no-verify)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`box: pre-push: the tests failed, so the push was stopped. Fix them and push again, or push anyway with: git push --no-verify`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(_components.p,{children:`What that test run prints, from job bj_FsKyhQhqbroz8BoM:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Test Suite 'All tests' passed at 2026-11-28 03:05:14.925.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`** TEST EXECUTE SUCCEEDED **`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`box: tests 1 passed, 0 failed`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`box: bj_FsKyhQhqbroz8BoM succeeded, 120s billed, $0.10`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`2`,id:`what-it-costs`,children:`What it costs`}),`\n`,_jsx(_components.p,{children:`$0.05 per minute of build and test time on iOS, every started minute, and only when a push runs the tests.`}),`\n`,_jsx(Heading,{level:`2`,id:`how-else-people-do-this`,children:`How else people do this`}),`\n`,_jsxs(_components.p,{children:[`GitHub-hosted macOS runners cost 10 times the Linux per-minute rate (`,_jsx(_components.a,{href:`https://docs.github.com/en/billing/reference/actions-runner-pricing`,children:`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.`]}),`\n`,_jsx(_components.p,{children:`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.`})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":"system","config":{},"pageMetadata":{"title":"Cut GitHub Actions macOS minutes with a test before you push","description":"GitHub bills macOS minutes at 10 times the Linux rate (https://docs.github.com/en/billing/reference/actions-runner-pricing), and an agent that pushes on every change spends those minutes on builds that fail. Running the tests before the push means a failing change never reaches the runner.","icon":"book-open","href":"/guides/cut-macos-minutes"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Run it","slug":"run-it","depth":2,"children":[]},{"title":"What it costs","slug":"what-it-costs","depth":2,"children":[]},{"title":"How else people do this","slug":"how-else-people-do-this","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"xenoci","siteName":"XenoCI Box","title":"Cut GitHub Actions macOS minutes with a test before you push - XenoCI Box","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-29T07:57:42.436Z","originalFileLocation":"guides/cut-macos-minutes.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=\"light\";if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"light\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"GitHub bills macOS minutes at 10 times the Linux rate (https://docs.github.com/en/billing/reference/actions-runner-pricing), and an agent that pushes on every change spends those minutes on builds that fail. Running the tests before the push means a failing change never reaches the runner.\">\u003cmeta data-mint-head name=\"application-name\" content=\"XenoCI Box\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/xenoci/zCsFhQ1SwmjPyl_B/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/xenoci/zCsFhQ1SwmjPyl_B/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/xenoci/zCsFhQ1SwmjPyl_B/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/xenoci/zCsFhQ1SwmjPyl_B/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/xenoci/zCsFhQ1SwmjPyl_B/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/xenoci/zCsFhQ1SwmjPyl_B/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/xenoci/zCsFhQ1SwmjPyl_B/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/xenoci/zCsFhQ1SwmjPyl_B/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/xenoci/zCsFhQ1SwmjPyl_B/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Cut GitHub Actions macOS minutes with a test before you push - XenoCI Box\">\u003cmeta data-mint-head property=\"og:description\" content=\"GitHub bills macOS minutes at 10 times the Linux rate (https://docs.github.com/en/billing/reference/actions-runner-pricing), and an agent that pushes on every change spends those minutes on builds that fail. Running the tests before the push means a failing change never reaches the runner.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"XenoCI Box\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.xenoci.com/guides/cut-macos-minutes\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://xenoci.mintlify.site/og.png\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Cut GitHub Actions macOS minutes with a test before you push - XenoCI Box\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"GitHub bills macOS minutes at 10 times the Linux rate (https://docs.github.com/en/billing/reference/actions-runner-pricing), and an agent that pushes on every change spends those minutes on builds that fail. Running the tests before the push means a failing change never reaches the runner.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://xenoci.mintlify.site/og.png\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/xenoci/zCsFhQ1SwmjPyl_B/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"XenoCI Box\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#393C00\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.xenoci.com/guides/cut-macos-minutes\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/guides/cut-macos-minutes.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.xenoci.com/#organization\",\"name\":\"XenoCI Box\",\"url\":\"https://docs.xenoci.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/xenoci/5K0lU7MNCvKvzp7d/logo/light.svg?fit=max\u0026auto=format\u0026n=5K0lU7MNCvKvzp7d\u0026q=85\u0026s=fa1d99df5d58dc3cb333cf076ccfd4ee\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.xenoci.com#website\",\"name\":\"XenoCI Box\",\"url\":\"https://docs.xenoci.com\",\"publisher\":{\"@id\":\"https://docs.xenoci.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.xenoci.com/guides/cut-macos-minutes#webpage\",\"url\":\"https://docs.xenoci.com/guides/cut-macos-minutes\",\"name\":\"Cut GitHub Actions macOS minutes with a test before you push\",\"description\":\"GitHub bills macOS minutes at 10 times the Linux rate (https://docs.github.com/en/billing/reference/actions-runner-pricing), and an agent that pushes on every change spends those minutes on builds that fail. Running the tests before the push means a failing change never reaches the runner.\",\"dateModified\":\"2026-11-29T07:57:42.436Z\",\"isPartOf\":{\"@id\":\"https://docs.xenoci.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.xenoci.com/guides/cut-macos-minutes#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.xenoci.com/guides/cut-macos-minutes#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Guides\",\"item\":\"https://docs.xenoci.com/guides\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Cut GitHub Actions macOS minutes with a test before you push\",\"item\":\"https://docs.xenoci.com/guides/cut-macos-minutes\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.xenoci.com/guides/cut-macos-minutes#article\",\"headline\":\"Cut GitHub Actions macOS minutes with a test before you push\",\"name\":\"Cut GitHub Actions macOS minutes with a test before you push\",\"description\":\"GitHub bills macOS minutes at 10 times the Linux rate (https://docs.github.com/en/billing/reference/actions-runner-pricing), and an agent that pushes on every change spends those minutes on builds that fail. Running the tests before the push means a failing change never reaches the runner.\",\"url\":\"https://docs.xenoci.com/guides/cut-macos-minutes\",\"mainEntityOfPage\":{\"@id\":\"https://docs.xenoci.com/guides/cut-macos-minutes#webpage\"},\"image\":\"https://docs.xenoci.com/og.png\",\"dateModified\":\"2026-11-29T07:57:42.436Z\",\"publisher\":{\"@id\":\"https://docs.xenoci.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.xenoci.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"XenoCI Box\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"XenoCI Box\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/guides/cut-macos-minutes.md","siteName":"XenoCI Box","nav":{"global":{"anchors":[{"anchor":"Status","icon":"signal-bars","href":"https://status.xenoci.com"},{"anchor":"Pricing","icon":"dollar-sign","href":"/reference/pricing"},{"anchor":"Agent setup","icon":"square-terminal","href":"/setup"},{"anchor":"Support","icon":"bell-concierge","href":"/support"}]},"tabs":[{"tab":"iOS","icon":"apple","pages":[{"title":"iOS","href":""}]},{"tab":"Android","icon":"android","pages":[{"title":"Android","href":"/android/quickstart"}]},{"tab":"Agents","icon":"robot","pages":[{"title":"Agents","href":"/agents"}]},{"tab":"Reference","icon":"book","pages":[{"title":"Reference","href":"/reference/commands"}]},{"tab":"Guides","icon":"book-open","groups":[{"group":"Guides","pages":[{"title":"Guides","icon":"books","href":"/guides"},{"title":"Take iOS simulator screenshots from Codex or Cursor","icon":"book-open","href":"/guides/agent-simulator-screenshots"},{"title":"Build an iOS app from Linux with Claude Code","description":"Claude Code on Linux has no Xcode, so an iOS build stops before it starts. box runs the build on a real Mac and streams the log back into the same session.","icon":"book-open","href":"/guides/build-ios-from-linux"},{"title":"Cut GitHub Actions macOS minutes with a test before you push","icon":"book-open","href":"/guides/cut-macos-minutes"},{"title":"Build an Expo iOS app without waiting in the build queue","description":"Expo's free plan builds iOS apps on a low-priority queue, behind other builds. Running the build on a Mac you start yourself skips that queue.","icon":"book-open","href":"/guides/expo-ios-without-eas"},{"title":"Test a Flutter iOS app from Windows","icon":"book-open","href":"/guides/flutter-ios-from-windows"},{"title":"Debug an iOS app with LLDB from a cloud sandbox","icon":"book-open","href":"/guides/lldb-from-a-sandbox"},{"title":"Fix \"xcodebuild: command not found\" on Linux CI","icon":"book-open","href":"/guides/xcodebuild-not-found"},{"title":"Run XCTest without a Mac","icon":"book-open","href":"/guides/xctest-without-a-mac"}]}]}]},"basePath":"","title":"Cut GitHub Actions macOS minutes with a test before you push - XenoCI Box","deploymentId":"dpl_EwfxjeKENdVkfzdag8rM6mKzcTUJ","buildId":"dpl_EwfxjeKENdVkfzdag8rM6mKzcTUJ","dynamics":[],"chunks":[]}