<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Daksh Gargas</title>
    <description>The latest articles on DEV Community by Daksh Gargas (@daksh-gargas).</description>
    <link>https://dev.to/daksh-gargas</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F81541%2F8e86e0e4-b356-4178-9fd3-9bde113d855e.jpg</url>
      <title>DEV Community: Daksh Gargas</title>
      <link>https://dev.to/daksh-gargas</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/daksh-gargas"/>
    <language>en</language>
    <item>
      <title>Stop Wasting GitHub Actions Minutes: How We Built a Commit-Driven CI System for iOS</title>
      <dc:creator>Daksh Gargas</dc:creator>
      <pubDate>Thu, 23 Apr 2026 17:34:47 +0000</pubDate>
      <link>https://dev.to/daksh-gargas/stop-wasting-github-actions-minutes-how-we-built-a-commit-driven-ci-system-for-ios-47cd</link>
      <guid>https://dev.to/daksh-gargas/stop-wasting-github-actions-minutes-how-we-built-a-commit-driven-ci-system-for-ios-47cd</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwh3zlk54hm2j7tejdqpn.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwh3zlk54hm2j7tejdqpn.jpeg" alt="Image 1: Hero — commit message drives CI routing" width="800" height="447"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you're building an iOS app with GitHub Actions, you're probably burning through macOS runner minutes like they're free. &lt;/p&gt;

&lt;p&gt;Spoiler: they're not — macOS runners cost &lt;strong&gt;10x&lt;/strong&gt; more than Linux runners, and a 25-minute test run that fires on every push adds up fast.&lt;/p&gt;

&lt;p&gt;We run a Swift/SwiftUI app with 3000+ tests across BLE integration, calibration logic, snapshot testing, and more. Here's how we went from "run everything on every push" to an opt-in, routable, self-hosted-friendly CI.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;TL;DR — you can get the speed of self-hosted runners without the usual operational overhead, and in a way that's completely developer-independent:&lt;/strong&gt; &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;No shared build box to maintain, &lt;/li&gt;
&lt;li&gt;no daemons running on anyone's laptop, &lt;/li&gt;
&lt;li&gt;no hardcoded machine names in CI configs. &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Every developer's Mac is self-aware: it reads its own identity from the runner config on disk, auto-starts in single-job mode only when a commit explicitly asks for it, and shuts down the moment the job finishes. One line in a commit message routes the build to the right machine — and the same workflow works unchanged whether you're running on GitHub's cloud or on someone's M-series laptop.&lt;/p&gt;

&lt;p&gt;The rest of this post walks through how we got there: a commit-driven CI system where &lt;strong&gt;the commit message controls exactly what runs, where it runs, and whether it runs at all&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Problem
&lt;/h2&gt;

&lt;p&gt;Our test suite takes ~25 minutes on GitHub-hosted macOS runners — and that's not even running all the tests, just a subset. Most of that time is build time; the actual tests finish in seconds. But every push triggered that same partial suite, even for a one-line copy change.&lt;/p&gt;

&lt;p&gt;We were spending hundreds of dollars a month on CI that mostly told us "yes, the code you didn't touch still works."&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqavuu4er53cvkqqiypy6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqavuu4er53cvkqqiypy6.png" alt="Image 2: Before vs After — 25 min on every push vs 0–3 min opt-in" width="800" height="475"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The Solution: &lt;code&gt;[ci: ...]&lt;/code&gt; Commit Directives
&lt;/h2&gt;

&lt;p&gt;We put CI control directly in the commit message body. One line, declarative, readable in &lt;code&gt;git log&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;feat(theme): update color palette

[ci: tags=theme exclude=snapshot]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That's it. This commit runs only the &lt;code&gt;theme&lt;/code&gt;-tagged tests and skips snapshot tests. Total CI time: ~3 minutes instead of 25.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Full Directive Syntax
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;[ci: tags=&amp;lt;t1,t2&amp;gt; exclude=&amp;lt;t1,t2&amp;gt; runner=&amp;lt;name&amp;gt; final record-snapshots]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Every key is optional:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Key&lt;/th&gt;
&lt;th&gt;What it does&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;tags=theme,calibration&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Run only these Swift Testing tags&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;exclude=snapshot&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Skip these tags&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;final&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Run the full test suite (pre-merge gate)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;runner=&amp;lt;name&amp;gt;&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Route to a self-hosted runner (dynamically resolved — see below)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;record-snapshots&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Re-record snapshot reference images&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;No directive = no CI run.&lt;/strong&gt; Normal development commits don't burn any minutes.&lt;/p&gt;

&lt;h2&gt;
  
  
  How the Parsing Works
&lt;/h2&gt;

&lt;p&gt;Both our workflows (&lt;code&gt;targeted-tests.yml&lt;/code&gt; for scoped runs, &lt;code&gt;regular-tests.yml&lt;/code&gt; for full suite) share a &lt;code&gt;parse-directive&lt;/code&gt; job that runs on a cheap &lt;code&gt;ubuntu-latest&lt;/code&gt; runner. It:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Checks out the repo (needs git history)&lt;/li&gt;
&lt;li&gt;Reads the latest non-merge commit message&lt;/li&gt;
&lt;li&gt;Extracts the &lt;code&gt;[ci: ...]&lt;/code&gt; block with a simple grep/sed pipeline&lt;/li&gt;
&lt;li&gt;Outputs structured values (&lt;code&gt;tags&lt;/code&gt;, &lt;code&gt;exclude&lt;/code&gt;, &lt;code&gt;runner-name&lt;/code&gt;, etc.) for downstream jobs
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Parse [ci: ...] block from commit message&lt;/span&gt;
&lt;span class="nv"&gt;CI_BLOCK&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="si"&gt;$(&lt;/span&gt;&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$MSG&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; | &lt;span class="nb"&gt;grep&lt;/span&gt; &lt;span class="nt"&gt;-oE&lt;/span&gt; &lt;span class="s1"&gt;'\[ci:[^]]+\]'&lt;/span&gt; | &lt;span class="nb"&gt;head&lt;/span&gt; &lt;span class="nt"&gt;-1&lt;/span&gt;&lt;span class="si"&gt;)&lt;/span&gt;
&lt;span class="nv"&gt;TAGS&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="si"&gt;$(&lt;/span&gt;&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$CI_BLOCK&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; | &lt;span class="nb"&gt;grep&lt;/span&gt; &lt;span class="nt"&gt;-oE&lt;/span&gt; &lt;span class="s1"&gt;'tags=[^ ]+'&lt;/span&gt; | &lt;span class="nb"&gt;sed&lt;/span&gt; &lt;span class="s1"&gt;'s/tags=//'&lt;/span&gt;&lt;span class="si"&gt;)&lt;/span&gt;
&lt;span class="nv"&gt;RUNNER&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="si"&gt;$(&lt;/span&gt;&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$CI_BLOCK&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; | &lt;span class="nb"&gt;grep&lt;/span&gt; &lt;span class="nt"&gt;-oE&lt;/span&gt; &lt;span class="s1"&gt;'runner=[^ ]+'&lt;/span&gt; | &lt;span class="nb"&gt;sed&lt;/span&gt; &lt;span class="s1"&gt;'s/runner=//'&lt;/span&gt;&lt;span class="si"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The expensive macOS jobs only start if the parse job says so. If there's no directive, the workflow exits cleanly with a green check — no wasted minutes, no red X.&lt;/p&gt;

&lt;h2&gt;
  
  
  Tag-Based Test Scoping with Swift Testing
&lt;/h2&gt;

&lt;p&gt;Swift Testing's &lt;code&gt;@Test(.tags(...))&lt;/code&gt; system makes this possible. Every test is tagged by feature area:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight swift"&gt;&lt;code&gt;&lt;span class="kd"&gt;@Test&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;tags&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;calibration&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
&lt;span class="kd"&gt;func&lt;/span&gt; &lt;span class="nf"&gt;calibrationConvergesWithinTolerance&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="o"&gt;...&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="kd"&gt;@Test&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;tags&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;bluetoothManager&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
&lt;span class="kd"&gt;func&lt;/span&gt; &lt;span class="nf"&gt;connectDisconnectCycle&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="o"&gt;...&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Our test runner script translates comma-separated tags into &lt;code&gt;xcodebuild&lt;/code&gt; flags:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# tags=calibration,homePage becomes:&lt;/span&gt;
xcodebuild &lt;span class="nb"&gt;test&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-only-testing-tags&lt;/span&gt; calibration &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-only-testing-tags&lt;/span&gt; homePage
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This means a developer working on calibration only runs calibration tests. A theme change only runs theme tests. The feedback loop goes from 25 minutes to under 3.&lt;/p&gt;

&lt;h2&gt;
  
  
  Self-Hosted Runners: Your Machine, Your Speed ⚡
&lt;/h2&gt;

&lt;p&gt;GitHub-hosted macOS runners are decent machines, but your M-series MacBook Pro is probably faster — especially since it already has a warm DerivedData cache and resolved SPM packages.&lt;/p&gt;

&lt;p&gt;We added a &lt;code&gt;runner=&amp;lt;name&amp;gt;&lt;/code&gt; directive that routes the CI job to a specific self-hosted runner:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;fix(ble): stabilize BLE tests

[ci: tags=bluetoothManager,bptManager runner=daksh-personal]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;But how does a developer — or a Claude Code agent composing a commit — know what name to use? They don't hardcode it. We wrote a tiny helper script:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;scripts/ci/runner-name.sh
daksh-personal
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It reads the name from the runner's own config file (more on that below). So a commit looks like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git commit &lt;span class="nt"&gt;-m&lt;/span&gt; &lt;span class="s2"&gt;"fix(ble): stabilize tests

[ci: tags=bluetoothManager runner=&lt;/span&gt;&lt;span class="si"&gt;$(&lt;/span&gt;scripts/ci/runner-name.sh&lt;span class="si"&gt;)&lt;/span&gt;&lt;span class="s2"&gt;]"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The shell substitutes the real name at commit time. No one memorizes anything, and AI agents use the same script.&lt;/p&gt;

&lt;h3&gt;
  
  
  How It Works
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Each developer registers their Mac as a GitHub Actions self-hosted runner, picking any name they want (&lt;code&gt;daksh-personal&lt;/code&gt;, &lt;code&gt;janes-studio&lt;/code&gt;, &lt;code&gt;build-mac-01&lt;/code&gt; — whatever) and adding that name as a runner label&lt;/li&gt;
&lt;li&gt;When you run &lt;code&gt;./config.sh&lt;/code&gt;, the GitHub Actions runner writes a &lt;code&gt;.runner&lt;/code&gt; JSON file to the runner directory. This is a standard part of the runner infrastructure — we didn't create it. It looks like this:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="w"&gt;   &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
     &lt;/span&gt;&lt;span class="nl"&gt;"agentId"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;22&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
     &lt;/span&gt;&lt;span class="nl"&gt;"agentName"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"daksh-personal"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
     &lt;/span&gt;&lt;span class="nl"&gt;"poolId"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
     &lt;/span&gt;&lt;span class="nl"&gt;"poolName"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Default"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
     &lt;/span&gt;&lt;span class="nl"&gt;"serverUrl"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"https://pipelines..."&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
     &lt;/span&gt;&lt;span class="nl"&gt;"gitHubUrl"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"https://github.com/your-org/your-repo"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
     &lt;/span&gt;&lt;span class="nl"&gt;"workFolder"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"_work"&lt;/span&gt;&lt;span class="w"&gt;
   &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;code&gt;agentName&lt;/code&gt; field is whatever you typed at the "Enter the name of the runner" prompt. Both &lt;code&gt;runner-name.sh&lt;/code&gt; and the post-push hook read it dynamically — &lt;strong&gt;nothing is hardcoded in CI configs or documentation&lt;/strong&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;   &lt;span class="c"&gt;# runner-name.sh — prints the local runner name&lt;/span&gt;
   python3 &lt;span class="nt"&gt;-c&lt;/span&gt; &lt;span class="s2"&gt;"
     import json
     config = open('actions-runner/.runner', 'rb').read().decode('utf-8-sig')
     print(json.loads(config)['agentName'])
   "&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You set the name once during setup and never think about it again. Each machine knows its own identity.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The workflow uses a dynamic &lt;code&gt;runs-on&lt;/code&gt; — if the commit says &lt;code&gt;runner=daksh-personal&lt;/code&gt;, the job lands on exactly that machine:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;   &lt;span class="na"&gt;runs-on&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;${{ inputs.runner-name != '' &amp;amp;&amp;amp; inputs.runner-name || 'macos-26' }}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;On self-hosted runners, we skip &lt;code&gt;setup-xcode&lt;/code&gt; and cache steps (unnecessary — everything's already there)&lt;/li&gt;
&lt;li&gt;A post-push hook automatically starts the runner in single-job mode (&lt;code&gt;./run.sh --once&lt;/code&gt;)&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The runner picks up one job, runs it, and exits. No permanently running service. No wasted resources when you're not using it.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Auto-Start Hook — This Is Where It Gets Magical
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fthoj1yo5tjhxcdxgl1iu.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fthoj1yo5tjhxcdxgl1iu.png" alt="Image 3: Auto-start hook flow — git push → parse → ./run.sh --once → job picked up" width="800" height="447"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here's the part that feels like cheating.&lt;/p&gt;

&lt;p&gt;A self-hosted runner is useless if you have to remember to start it. "Let me open a terminal, &lt;code&gt;cd&lt;/code&gt; into the runner directory, run &lt;code&gt;./run.sh --once&lt;/code&gt;, wait for the job, then Ctrl-C" — nobody's doing that twenty times a day. The whole value proposition collapses the moment it requires manual effort.&lt;/p&gt;

&lt;p&gt;So we made it disappear. A Claude Code hook (checked into &lt;code&gt;.claude/settings.json&lt;/code&gt;) fires automatically after every &lt;code&gt;git push&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"hooks"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"PostToolUse"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"matcher"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Bash"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"if"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Bash(git push*)"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"hooks"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;
          &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
            &lt;/span&gt;&lt;span class="nl"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"command"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
            &lt;/span&gt;&lt;span class="nl"&gt;"command"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"./scripts/ci/start-self-hosted-runner.sh"&lt;/span&gt;&lt;span class="w"&gt;
          &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The script does three things, in order:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Reads the last commit message&lt;/strong&gt; and extracts the &lt;code&gt;runner=&amp;lt;name&amp;gt;&lt;/code&gt; field from the &lt;code&gt;[ci: ...]&lt;/code&gt; block.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Reads the local runner name from &lt;code&gt;actions-runner/.runner&lt;/code&gt;&lt;/strong&gt; — a JSON config file written once during &lt;code&gt;./config.sh&lt;/code&gt; setup — and checks if it matches the directive. If this machine isn't the target (or there's no directive at all), it exits silently. No noise, no side effects. Every developer's machine is self-aware: the script doesn't need to know who you are, it reads the identity from the runner config that already exists on disk.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;If this machine &lt;em&gt;is&lt;/em&gt; the target&lt;/strong&gt;, it launches the runner in background, single-job mode: &lt;code&gt;./run.sh --once &amp;amp;&lt;/code&gt;. The runner registers with GitHub, picks up exactly one job, executes it, and exits.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;That's the entire interaction. You write a commit message with &lt;code&gt;runner=&amp;lt;your-runner-name&amp;gt;&lt;/code&gt;, you push, and by the time you've switched back to your editor, your laptop is already building. The feedback loop for BLE tests went from &lt;strong&gt;~25 minutes (cloud runner cold start + build + test)&lt;/strong&gt; to &lt;strong&gt;~30 seconds (warm cache, already-resolved SPM packages, M-series silicon)&lt;/strong&gt;. A 50x speedup, triggered by a line in a commit message.&lt;/p&gt;

&lt;p&gt;And because it's &lt;code&gt;--once&lt;/code&gt;, there's no daemon, no background service, no "did I remember to stop the runner?" It's entirely demand-driven: it exists only while your job needs it.&lt;/p&gt;

&lt;p&gt;The hook is the glue that makes the rest of the system feel invisible. Without it, self-hosted runners are a clever-but-annoying option. With it, they're the default path for anything hardware-adjacent — and you stop thinking about CI altogether. You just commit, push, and the right machine runs the right tests.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Build-Once, Test-Many Pattern
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8f47589t8ph02yebdikz.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8f47589t8ph02yebdikz.jpeg" alt="Image 4: Build once, fan out to parallel Logic + Snapshot test jobs" width="800" height="447"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;For the full test suite (&lt;code&gt;[ci: final]&lt;/code&gt;), we don't want to build the project three times. Our &lt;code&gt;regular-tests.yml&lt;/code&gt; workflow:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Build job&lt;/strong&gt;: Compiles once, packages DerivedData as an artifact&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Logic tests job&lt;/strong&gt;: Downloads the artifact, runs &lt;code&gt;xcodebuild test-without-building&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Snapshot tests job&lt;/strong&gt;: Same artifact, runs only snapshot-tagged tests&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Jobs 2 and 3 run in parallel. Total wall time is build + max(logic, snapshots) instead of build * 3.&lt;/p&gt;

&lt;h3&gt;
  
  
  Why Self-Hosted Runners Are Even Faster: Warm DerivedData
&lt;/h3&gt;

&lt;p&gt;On GitHub-hosted runners, every job starts clean — no DerivedData, no resolved SPM packages. The build job has to compile everything from scratch every time. On a self-hosted runner, DerivedData persists in &lt;code&gt;$HOME/DerivedData/CI&lt;/code&gt; between CI runs. That means:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;SPM packages stay resolved.&lt;/strong&gt; No re-downloading, no re-linking. The &lt;code&gt;-skipPackageUpdates&lt;/code&gt; flag in quick mode skips the resolution step entirely.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Incremental builds.&lt;/strong&gt; If you changed one file, xcodebuild recompiles that file — not the entire project.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Build-graph validation, not recompilation.&lt;/strong&gt; Test jobs run &lt;code&gt;build-for-testing&lt;/code&gt; before &lt;code&gt;test-without-building&lt;/code&gt; to validate that the build products are still valid. This takes 65–90 seconds — not zero, but far less than a cold build.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;We measured this over 5 consecutive CI runs on the same self-hosted runner:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Run&lt;/th&gt;
&lt;th&gt;Build job&lt;/th&gt;
&lt;th&gt;Notes&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1 (cold-ish)&lt;/td&gt;
&lt;td&gt;3m 1s&lt;/td&gt;
&lt;td&gt;First run after the DerivedData path fix&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;1m 6s&lt;/td&gt;
&lt;td&gt;Warm cache — SPM resolved, most objects cached&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;1m 44s&lt;/td&gt;
&lt;td&gt;Small code change, incremental recompile&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;1m 44s&lt;/td&gt;
&lt;td&gt;Same pattern&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;1m 39s&lt;/td&gt;
&lt;td&gt;Consistent ~1.5 min steady state&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The first run pays the cold tax. Every subsequent run benefits from the warm cache. On GitHub-hosted runners, every run is Run 1.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Safety Net: When We Still Run Everything
&lt;/h2&gt;

&lt;p&gt;To be clear — we're not skipping tests, we're &lt;em&gt;scheduling&lt;/em&gt; them. The full suite is still the source of truth, and it absolutely runs at the moments that matter:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Before a PR merges.&lt;/strong&gt; A &lt;code&gt;[ci: final]&lt;/code&gt; commit (or the equivalent on the merge commit) runs the entire suite as the pre-merge gate. Nothing lands on &lt;code&gt;main&lt;/code&gt; without it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;On a regular cadence&lt;/strong&gt; for long-lived branches, so drift doesn't pile up silently.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Always before an App Store submission.&lt;/strong&gt; Shipping to users is the one place where "fast feedback" loses to "zero surprises" — the full suite runs, snapshots and all, no exceptions.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The point of commit directives isn't to avoid testing. It's to find the middle ground between rapid iteration and stability: don't pay the 25-minute tax on a typo fix, &lt;em&gt;do&lt;/em&gt; pay it when the blast radius justifies it. CI is still the source of truth — we're just choosing when to consult it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Results
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Metric&lt;/th&gt;
&lt;th&gt;Before&lt;/th&gt;
&lt;th&gt;After&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Average CI time per push&lt;/td&gt;
&lt;td&gt;25 min&lt;/td&gt;
&lt;td&gt;0-3 min&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Monthly macOS runner minutes&lt;/td&gt;
&lt;td&gt;~2,000&lt;/td&gt;
&lt;td&gt;~300&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Time to BLE test feedback&lt;/td&gt;
&lt;td&gt;25 min (cloud)&lt;/td&gt;
&lt;td&gt;~30s (self-hosted)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Commits that trigger CI&lt;/td&gt;
&lt;td&gt;100%&lt;/td&gt;
&lt;td&gt;~15%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Build job (self-hosted, warm)&lt;/td&gt;
&lt;td&gt;n/a&lt;/td&gt;
&lt;td&gt;~1.5 min&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Build job (cloud, cold)&lt;/td&gt;
&lt;td&gt;~3 min&lt;/td&gt;
&lt;td&gt;~3 min&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Full suite wall time (self-hosted)&lt;/td&gt;
&lt;td&gt;n/a&lt;/td&gt;
&lt;td&gt;~13 min&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The key insight: &lt;strong&gt;most commits don't need CI at all.&lt;/strong&gt; When they do, they rarely need &lt;em&gt;all&lt;/em&gt; the tests. And when you need fast feedback on hardware-adjacent code (BLE, sensors), your own machine is 50x faster than waiting for a cloud runner to boot, build, and test.&lt;/p&gt;

&lt;p&gt;The second insight: &lt;strong&gt;DerivedData persistence is the real speedup on self-hosted.&lt;/strong&gt; The build-once-test-many pattern saves one redundant build, but the warm DerivedData cache across CI runs saves the SPM resolution and cold compilation that dominates cloud runner time. A self-hosted build job consistently finishes in ~1.5 minutes versus ~3 minutes on a cold cloud runner — and that gap widens as your dependency graph grows.&lt;/p&gt;

&lt;h2&gt;
  
  
  Getting Started
&lt;/h2&gt;

&lt;p&gt;You don't need our exact setup. The pattern is:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Tag your tests&lt;/strong&gt; by feature area (Swift Testing, pytest markers, Jest tags — whatever your framework supports)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Parse the commit message&lt;/strong&gt; in a cheap Linux job before spinning up expensive runners&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Default to not running&lt;/strong&gt; — opt-in is cheaper than opt-out&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Let devs use their own machines&lt;/strong&gt; for fast iteration via self-hosted runners in single-job mode — read the runner identity from the local config so nothing is hardcoded per-developer&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The commit message is the interface. It's visible in &lt;code&gt;git log&lt;/code&gt;, reviewable in PRs, and doesn't require any dashboard or config file changes. Just write your message and push.&lt;/p&gt;

&lt;h2&gt;
  
  
  What You Need After Cloning the Repo
&lt;/h2&gt;

&lt;p&gt;The CI directives (&lt;code&gt;[ci: tags=...]&lt;/code&gt;, &lt;code&gt;[ci: final]&lt;/code&gt;) work out of the box — they're parsed by GitHub Actions workflows already in the repo. But if you want to use &lt;code&gt;runner=&amp;lt;name&amp;gt;&lt;/code&gt; to run tests on your own machine, here's the one-time setup:&lt;/p&gt;

&lt;p&gt;
  Self-hosted runner setup (one-time, ~5 min)
  &lt;h3&gt;
  
  
  1. Install the GitHub Actions runner
&lt;/h3&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;cd&lt;/span&gt; /path/to/your-project/..   &lt;span class="c"&gt;# parent of the repo&lt;/span&gt;
&lt;span class="nb"&gt;mkdir &lt;/span&gt;actions-runner &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="nb"&gt;cd &lt;/span&gt;actions-runner

&lt;span class="c"&gt;# Go to repo Settings → Actions → Runners → "New self-hosted runner"&lt;/span&gt;
&lt;span class="c"&gt;# Select macOS / ARM64, then follow the download + extract instructions:&lt;/span&gt;
curl &lt;span class="nt"&gt;-o&lt;/span&gt; actions-runner-osx-arm64-X.Y.Z.tar.gz &lt;span class="nt"&gt;-L&lt;/span&gt; &amp;lt;URL_FROM_GITHUB&amp;gt;
&lt;span class="nb"&gt;tar &lt;/span&gt;xzf ./actions-runner-osx-arm64-X.Y.Z.tar.gz
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;h3&gt;
  
  
  2. Configure the runner
&lt;/h3&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;./config.sh &lt;span class="nt"&gt;--url&lt;/span&gt; https://github.com/your-org/your-repo &lt;span class="nt"&gt;--token&lt;/span&gt; &amp;lt;TOKEN_FROM_SETTINGS_PAGE&amp;gt;
&lt;span class="c"&gt;# Pick any name you want (e.g. "daksh-personal", "janes-studio")&lt;/span&gt;
&lt;span class="c"&gt;# This name gets written to .runner and is what you'll use in commit messages&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;h3&gt;
  
  
  3. Add your runner name as a label
&lt;/h3&gt;

&lt;p&gt;This is the step you'll miss the first time. GitHub's &lt;code&gt;runs-on&lt;/code&gt; matches &lt;strong&gt;labels&lt;/strong&gt;, not runner names — and &lt;code&gt;./config.sh&lt;/code&gt; only assigns generic labels (&lt;code&gt;self-hosted&lt;/code&gt;, &lt;code&gt;macOS&lt;/code&gt;, &lt;code&gt;ARM64&lt;/code&gt;). You need to add your runner name as a custom label:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;cd&lt;/span&gt; /path/to/your-repo
&lt;span class="nv"&gt;RUNNER_NAME&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="si"&gt;$(&lt;/span&gt;scripts/ci/runner-name.sh&lt;span class="si"&gt;)&lt;/span&gt;
&lt;span class="nv"&gt;RUNNER_ID&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="si"&gt;$(&lt;/span&gt;gh api repos/your-org/your-repo/actions/runners &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--jq&lt;/span&gt; &lt;span class="s2"&gt;".runners[] | select(.name==&lt;/span&gt;&lt;span class="se"&gt;\"&lt;/span&gt;&lt;span class="nv"&gt;$RUNNER_NAME&lt;/span&gt;&lt;span class="se"&gt;\"&lt;/span&gt;&lt;span class="s2"&gt;) | .id"&lt;/span&gt;&lt;span class="si"&gt;)&lt;/span&gt;
gh api &lt;span class="nt"&gt;-X&lt;/span&gt; POST repos/your-org/your-repo/actions/runners/&lt;span class="nv"&gt;$RUNNER_ID&lt;/span&gt;/labels &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--input&lt;/span&gt; - &lt;span class="o"&gt;&amp;lt;&amp;lt;&amp;lt;&lt;/span&gt; &lt;span class="s2"&gt;"{&lt;/span&gt;&lt;span class="se"&gt;\"&lt;/span&gt;&lt;span class="s2"&gt;labels&lt;/span&gt;&lt;span class="se"&gt;\"&lt;/span&gt;&lt;span class="s2"&gt;:[&lt;/span&gt;&lt;span class="se"&gt;\"&lt;/span&gt;&lt;span class="nv"&gt;$RUNNER_NAME&lt;/span&gt;&lt;span class="se"&gt;\"&lt;/span&gt;&lt;span class="s2"&gt;]}"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  4. That's it
&lt;/h3&gt;

&lt;p&gt;Everything else is already in the repo:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;.claude/settings.json&lt;/code&gt;&lt;/strong&gt; — a post-push hook that auto-starts the runner when your commit includes &lt;code&gt;runner=&amp;lt;your-name&amp;gt;&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;scripts/ci/runner-name.sh&lt;/code&gt;&lt;/strong&gt; — reads your runner name from the local config so you never hardcode it&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;scripts/ci/start-self-hosted-runner.sh&lt;/code&gt;&lt;/strong&gt; — matches the commit directive against the local runner and starts it in single-job mode&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Your first self-hosted CI run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git commit &lt;span class="nt"&gt;-m&lt;/span&gt; &lt;span class="s2"&gt;"fix(ble): stabilize

[ci: tags=bluetoothManager runner=&lt;/span&gt;&lt;span class="si"&gt;$(&lt;/span&gt;scripts/ci/runner-name.sh&lt;span class="si"&gt;)&lt;/span&gt;&lt;span class="s2"&gt;]"&lt;/span&gt;
git push
&lt;span class="c"&gt;# Hook fires → runner starts → picks up the job → exits when done&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;No daemon, no background service, no config files to edit. Clone, configure once, push.&lt;/p&gt;



&lt;br&gt;
&lt;/p&gt;

&lt;h2&gt;
  
  
  What's Your Take?
&lt;/h2&gt;

&lt;p&gt;This is the setup that worked for &lt;em&gt;us&lt;/em&gt; — a small team, an iOS app, a specific test suite. But I'm genuinely curious how other teams are solving the same problem. What tradeoffs did you make that we didn't? What's broken about this approach that I'm not seeing?&lt;/p&gt;

&lt;p&gt;Some things I'd love POV on:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Path-based triggers vs commit directives&lt;/strong&gt; — we picked commits because they're explicit and reviewable, but &lt;code&gt;paths:&lt;/code&gt; filters are simpler. When has one clearly beaten the other for you?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Self-hosted runners at scale&lt;/strong&gt; — we have a handful of developer Macs. Does this pattern hold up with 20+ engineers, or does it fall apart on coordination?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The "no CI by default" call&lt;/strong&gt; — is this reckless on a larger team, or is the pre-merge gate enough of a safety net?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Something we haven't even considered&lt;/strong&gt; — Bazel remote cache? Merge queues? Monorepo-style affected-test detection? Tell me what we're missing.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Let's improve this together so anyone reading it later walks away with the best possible playbook — not just ours.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;We're building a health-tech companion app at &lt;a href="//www.dls.co"&gt;Denver Life Sciences&lt;/a&gt;. If you have questions about this setup or want to see the workflow files, drop a comment below.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>githubactions</category>
      <category>cicd</category>
      <category>ios</category>
      <category>devops</category>
    </item>
    <item>
      <title>Our SwiftUI snapshot tests passed locally but failed on CI. Here's the actual fix.</title>
      <dc:creator>Daksh Gargas</dc:creator>
      <pubDate>Thu, 16 Apr 2026 03:07:52 +0000</pubDate>
      <link>https://dev.to/daksh-gargas/our-swiftui-snapshot-tests-passed-locally-but-failed-on-ci-heres-the-actual-fix-5fhd</link>
      <guid>https://dev.to/daksh-gargas/our-swiftui-snapshot-tests-passed-locally-but-failed-on-ci-heres-the-actual-fix-5fhd</guid>
      <description>&lt;p&gt;500+ snapshot tests, all green on every developer's Mac, all red on GitHub Actions. Sound familiar?&lt;/p&gt;

&lt;p&gt;The common advice is "record your reference images on CI" or "lower your precision threshold." We tried both. Neither felt right.&lt;/p&gt;

&lt;p&gt;Recording on CI means you can't verify snapshots locally anymore. Every UI change becomes a multi-step ritual: push a commit, wait for CI to fail, download the new reference PNGs from the artifacts, commit them, push again, wait for CI to pass. If you touch 10 views, that's 10 PNGs you need to pull down and commit blind — you're trusting CI's rendering as ground truth without ever seeing the images on your own screen. And if two people change UI on separate branches, you get merge conflicts in binary PNG files.&lt;/p&gt;

&lt;p&gt;Lowering precision thresholds is worse. Drop to 85% and you're not really testing the UI anymore — real regressions hide in the noise.&lt;/p&gt;

&lt;p&gt;It took us three wrong hypotheses and a lot of diff images to find the real cause. Sharing in case it saves someone else the same journey.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why we moved from iOS Simulator to macOS
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;TL;DR:&lt;/strong&gt; Tests went from 170s to 7s locally (25x), CI from ~30 min to ~17 min.&lt;/p&gt;

&lt;p&gt;Before the snapshot story, some context on how we got here — because the move to macOS is what made this problem (and the fix) possible.&lt;/p&gt;

&lt;p&gt;Our test suite ran on the iOS Simulator. Every &lt;code&gt;xcodebuild test&lt;/code&gt; invocation booted a simulator, waited for it to become ready, deployed the test bundle, and ran. &lt;strong&gt;170 seconds&lt;/strong&gt; for a full run. Locally that's annoying; on CI it's brutal — you're paying for a macOS runner to sit idle while a virtual iPhone boots.&lt;/p&gt;

&lt;p&gt;We started asking: how many of these tests actually need a simulator? We audited the suite and the answer was almost none. Our app logic — state management, data parsing, network handling, navigation — is pure Swift. It doesn't call UIKit. And SwiftUI views? They render just fine on macOS through &lt;code&gt;NSHostingView&lt;/code&gt;. Apple's own framework handles the translation.&lt;/p&gt;

&lt;p&gt;So we flipped the destination from &lt;code&gt;platform=iOS Simulator&lt;/code&gt; to &lt;code&gt;platform=macOS&lt;/code&gt; and ran the suite. Most tests passed immediately. A handful needed &lt;code&gt;#if os(iOS)&lt;/code&gt; guards — things like &lt;code&gt;UIImage&lt;/code&gt; processing or &lt;code&gt;CLAuthorizationStatus&lt;/code&gt; that genuinely require iOS APIs. We kept those on the simulator and moved everything else to macOS.&lt;/p&gt;

&lt;p&gt;The result: &lt;strong&gt;7 seconds&lt;/strong&gt;. Same tests, same assertions, 25x faster. The CI improvement was even more dramatic — we switched to a build-once pattern (build the test target, upload the build artifact, then fan out parallel test jobs using &lt;code&gt;xcodebuild test-without-building&lt;/code&gt;). Total CI time dropped from ~30 minutes to ~17 minutes.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdguzv8jg63h02ccdeau3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdguzv8jg63h02ccdeau3.png" alt="Summary" width="800" height="447"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The logic tests worked perfectly on macOS. The snapshot tests did not.&lt;/p&gt;

&lt;h2&gt;
  
  
  What we tried (and why it didn't work)
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Hypothesis 1: "It's the resolution"
&lt;/h3&gt;

&lt;p&gt;Retina Macs render at 2x. CI VMs (GitHub Actions macOS runners) render at 1x. We built a custom rendering strategy that pins the bitmap to a fixed size — 390x844 at 1x scale. This fixed the dimension mismatch, but tests still failed.&lt;/p&gt;

&lt;h3&gt;
  
  
  Hypothesis 2: "It's font rendering"
&lt;/h3&gt;

&lt;p&gt;Physical Macs and CI VMs do render fonts slightly differently — roughly a 95% pixel match for identical views. We lowered precision thresholds: from 99.5% to 93% to 85%. Some tests still failed, and the threshold was getting uncomfortably low. At 85% precision, you're not really testing the UI anymore.&lt;/p&gt;

&lt;h3&gt;
  
  
  Hypothesis 3: "It's non-deterministic animations"
&lt;/h3&gt;

&lt;p&gt;We disabled all SwiftUI animations via &lt;code&gt;.transaction { $0.animation = nil }&lt;/code&gt;. This helped with a few chart-related tests but didn't solve the core problem.&lt;/p&gt;

&lt;h3&gt;
  
  
  What actually worked: measuring the images
&lt;/h3&gt;

&lt;p&gt;Each of those fixes solved a real problem — resolution normalization, font tolerance, animation disabling — and they all stayed in the final solution. But tests were &lt;em&gt;still&lt;/em&gt; failing after all three. Something else was going on.&lt;/p&gt;

&lt;p&gt;We opened the &lt;code&gt;.xcresult&lt;/code&gt; bundle and looked at the reference and failure images side by side. The content was clearly the same — but the images weren't aligned. The CI renders looked shorter, like something was clipping the bottom of the view. That was the clue.&lt;/p&gt;

&lt;p&gt;To confirm, we exported the failure attachments:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;xcrun xcresulttool &lt;span class="nb"&gt;export &lt;/span&gt;attachments &lt;span class="nt"&gt;--path&lt;/span&gt; result.xcresult &lt;span class="nt"&gt;--output-path&lt;/span&gt; /tmp/ci-snapshot-compare
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then ran &lt;code&gt;sips&lt;/code&gt; — macOS's built-in image property tool — on the reference and failure PNGs:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sips &lt;span class="nt"&gt;-g&lt;/span&gt; pixelWidth &lt;span class="nt"&gt;-g&lt;/span&gt; pixelHeight reference.png failure.png
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The output was immediately conclusive:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;weakSignal ref:    390 x 812
weakSignal fail:   390 x 645

disconnected ref:  390 x 812
disconnected fail: 390 x 645

noPulse ref:       390 x 812
noPulse fail:      390 x 645
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Same width, but the CI images were &lt;strong&gt;167 pixels shorter&lt;/strong&gt;. Every single test showed the exact same pattern — that's not a rendering fluke, that's structural.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fi2wmt52qhlyx6wit3oqg.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fi2wmt52qhlyx6wit3oqg.jpeg" alt=" " width="800" height="447"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The root cause
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;swift-snapshot-testing&lt;/code&gt; renders views inside an &lt;code&gt;NSWindow&lt;/code&gt;. The window's title bar consumes part of the rendering area, and its height differs between a physical Mac and a headless CI VM. On CI, the title bar was eating 167 pixels out of the view's height — producing a shorter bitmap, not just a shifted one.&lt;/p&gt;

&lt;p&gt;That's it. Not fonts, not resolution, not animations. An NSWindow title bar stealing pixels from the rendering.&lt;/p&gt;

&lt;h2&gt;
  
  
  The fix
&lt;/h2&gt;

&lt;p&gt;Remove the window entirely. Render directly to an &lt;code&gt;NSHostingView&lt;/code&gt; and capture it with &lt;code&gt;cacheDisplay(in:to:)&lt;/code&gt; into a 1x &lt;code&gt;NSBitmapImageRep&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight swift"&gt;&lt;code&gt;&lt;span class="c1"&gt;// Before: view inside NSWindow (title bar offset varies by environment)&lt;/span&gt;
&lt;span class="k"&gt;let&lt;/span&gt; &lt;span class="nv"&gt;window&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kt"&gt;NSWindow&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;contentViewController&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;hostingController&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="kt"&gt;SnapshotTesting&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;assertSnapshot&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;of&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;hostingController&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;as&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;image&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;...&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;

&lt;span class="c1"&gt;// After: standalone view, no window&lt;/span&gt;
&lt;span class="k"&gt;let&lt;/span&gt; &lt;span class="nv"&gt;hostingView&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kt"&gt;NSHostingView&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;rootView&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;view&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;hostingView&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;frame&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kt"&gt;CGRect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;origin&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;zero&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;size&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;CGSize&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;390&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;height&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;844&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;

&lt;span class="k"&gt;let&lt;/span&gt; &lt;span class="nv"&gt;bitmapRep&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kt"&gt;NSBitmapImageRep&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="cm"&gt;/* 390x844, 1x, deviceRGB */&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;hostingView&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;layoutSubtreeIfNeeded&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;span class="n"&gt;hostingView&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;cacheDisplay&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;in&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;hostingView&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;bounds&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;to&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;bitmapRep&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="c1"&gt;// Compare the resulting NSImage against the reference PNG&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;No window = no title bar = no environment-dependent offset.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fccn2i409ouraq7xu9ot7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fccn2i409ouraq7xu9ot7.png" alt="Before and After" width="800" height="447"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Reference images recorded on any developer's MacBook now pass on CI with no special setup.&lt;/p&gt;

&lt;h2&gt;
  
  
  A subtle gotcha: &lt;code&gt;cacheDisplay&lt;/code&gt; vs &lt;code&gt;displayIgnoringOpacity&lt;/code&gt;
&lt;/h2&gt;

&lt;p&gt;If you search for "NSView to image" you'll find suggestions to use &lt;code&gt;bitmapImageRepForCachingDisplay&lt;/code&gt; + &lt;code&gt;displayIgnoringOpacity&lt;/code&gt;. That method doesn't render SwiftUI text content — labels come out invisible. &lt;code&gt;cacheDisplay(in:to:)&lt;/code&gt; renders the full view hierarchy correctly, including &lt;code&gt;Text&lt;/code&gt; views.&lt;/p&gt;

&lt;h2&gt;
  
  
  The takeaway
&lt;/h2&gt;

&lt;p&gt;Error messages like "95.3% of pixels match" tell you &lt;em&gt;something&lt;/em&gt; is wrong but not &lt;em&gt;what&lt;/em&gt;. We spent days tuning thresholds and disabling animations based on that number alone.&lt;/p&gt;

&lt;p&gt;A single &lt;code&gt;sips&lt;/code&gt; command told us more than days of threshold tuning.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;If your snapshot tests fail on CI:&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Don't lower precision thresholds below ~95% — you're hiding real regressions&lt;/li&gt;
&lt;li&gt;Don't record on CI unless you have no alternative — it makes local iteration slow&lt;/li&gt;
&lt;li&gt;Extract the failure attachments (&lt;code&gt;xcrun xcresulttool export attachments&lt;/code&gt;) and run &lt;code&gt;sips -g pixelWidth -g pixelHeight&lt;/code&gt; on reference vs actual — if the dimensions don't match, it's not a rendering difference, it's structural&lt;/li&gt;
&lt;li&gt;If the images are shorter or offset, check whether you're rendering inside a window&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcp6nw5hioru8zspsux1q.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcp6nw5hioru8zspsux1q.jpeg" alt="Summary" width="800" height="447"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://dls.co" rel="noopener noreferrer"&gt;Denver Life Sciences&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Relevant links
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://github.com/pointfreeco/swift-snapshot-testing" rel="noopener noreferrer"&gt;swift-snapshot-testing&lt;/a&gt; by Point-Free&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/pointfreeco/swift-snapshot-testing/issues/313" rel="noopener noreferrer"&gt;Issue #313: Snapshot color differences local vs CI&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/pointfreeco/swift-snapshot-testing/issues/926" rel="noopener noreferrer"&gt;Issue #926: Intermittent failures due to rendering differences&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/pointfreeco/swift-snapshot-testing/discussions/722" rel="noopener noreferrer"&gt;Discussion #722: Automatically record on failures&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>ios</category>
      <category>swiftui</category>
      <category>testing</category>
      <category>cicd</category>
    </item>
  </channel>
</rss>
