Skip to content

ci(ios): Build, test, and screenshot the iOS app - #3605

Merged
armcknight merged 6 commits into
mainfrom
armcknight/ios-ci
Nov 19, 2026
Merged

armcknight merged 6 commits into
mainfrom
armcknight/ios-ci

Conversation

@armcknight

Copy link
Copy Markdown
Member

Stacked on #3544. Nothing in CI builds or tests apps/ios yet. This adds an iOS workflow that runs when apps/ios changes.

  • test / build: swift test for JuniorKit, then an unsigned Release build for device. That is the configuration that the TestFlight lane in the next PR signs.
  • test / ui and screenshots: builds the dashboard, starts the mock MCP server, and runs NavigationUITests through sim.sh. Then it saves 10 screenshots of the main screens (Conversations in dark and light, a Conversation and its details, Inbox, a Review item, Automations, an Automation, the drawer, Settings) and uploads them as the ios-screenshots artifact.

The mock server start and the screenshot list are in apps/ios/scripts/start-mock-server.sh and screenshots.sh, so you can run the same steps locally to compare screens before and after a change. Each sim.sh run uses one temporary simulator and deletes it after.

Frameshift is not used yet. Its publish step finds its PR comment by one fixed marker and always sets the Frameshift status. An iOS publish step would replace or delete the dashboard's report. Also, Frameshift reads the "before" images only for the exact base commit, so it needs a baseline from every push to main.

Screenshots: this changes only CI, not what users see, so no screenshot test applies.

🤖 Generated with Claude Code

@vercel

vercel Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
junior-docs Ready Ready Preview Nov 19, 2026 12:31am UTC

Request Review

@armcknight

Copy link
Copy Markdown
Member Author

@sentry review

@armcknight
armcknight added this pull request to stack #3636 November 18, 2026 01:32
Base automatically changed from gricha/ios-app to main November 18, 2026 19:29
armcknight and others added 2 commits November 18, 2026 11:29
Add an iOS workflow for changes under apps/ios. One job runs the
JuniorKit tests and an unsigned Release build for device. The other
starts the mock MCP server, runs the UI tests, and uploads screenshots
of the main screens as an artifact.

The mock server start and the screenshot list are scripts in
apps/ios/scripts, so the same steps run locally.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
In CI, the first accessibility snapshot on a newly booted simulator took
30 seconds, so testAutomationShowsRuns missed its 10 second wait. The
tests after it passed. Run a failed test one more time.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
armcknight and others added 2 commits November 18, 2026 12:31
#3570 and #3572 removed `automation` from the `/automations/:id/executions`
response. The mock getAutomation tool still read it and failed for every
Automation, so testAutomationShowsRuns never saw Recent runs. Read
`/automations/:id` and the executions in parallel, as the real tool does.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The UI tests always used port 4317. sim.sh now gives JUNIOR_IOS_SERVER to
the tests, so a run can use a mock server on another port while a
different one holds 4317.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…limit

Move the note about the mock server port from the README to the sim.sh
header, next to its other environment variables.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@blacksmith-sh

This comment has been minimized.

@armcknight
armcknight marked this pull request as ready for review November 18, 2026 23:50
@github-actions github-actions Bot added the risk: medium PR risk score: medium label Nov 18, 2026
@armcknight
armcknight merged commit 08b426b into main Nov 19, 2026
51 checks passed
@armcknight
armcknight deleted the armcknight/ios-ci branch November 19, 2026 00:58

This branch was successfully deployed

1 active deployment
Preview – junior-docs — 2c944aaf Deployed Nov 19, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: medium PR risk score: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants