Skip to content

ci: run lint, package tests, and build on macOS runner - #7

Merged
AliceSaikawa merged 8 commits into
mainfrom
scaffold/6-ci
Nov 19, 2026
Merged

AliceSaikawa merged 8 commits into
mainfrom
scaffold/6-ci

Conversation

@AliceSaikawa

@AliceSaikawa AliceSaikawa commented Nov 17, 2026 •

Copy link
Copy Markdown
Owner

Why

lint、テスト、ビルドの結果を、手元の申告ではなく CI で確かめ、main の必須チェックにする。

What changed

  • .github/workflows/check.yml が macOS ランナーで scripts/on-mac/ の bootstrap、lint、test、build を順に実行する。手元の scripts/mac が SSH 越しに呼ぶのと同じスクリプトを使う。
  • scripts/on-mac/bootstrap の版の表示を head -1 から sed -n 1p に変えた。head が先に終了すると xcodebuild -version が Broken pipe で異常終了し、pipefail によって CI がときどき失敗していた。

Scope

  • 実機へのインストールは CI で行わない。

Tradeoffs

  • ランナーの Xcode は手元のベータと版が違う。swift-tools-version 6.2 が通る版であれば足りる。

Verification

  • この PR の CI の結果で確かめる。bootstrap の修正後の CI は成功した。

🤖 Claude による返信

scripts/mac syncs the Linux checkout to a per-worktree directory on the Mac and runs scripts/on-mac/<command> there. bootstrap installs the Brewfile tools.
scripts/mac test runs swift test on the Mac host. The package uses the Swift 6 language mode and treats warnings as errors.
scripts/mac lint runs swiftformat --lint and swiftlint --strict on the Mac. scripts/mac format formats on the Mac and copies the tracked Swift files back. SwiftLint drops opening_brace and trailing_comma because SwiftFormat owns them.
scripts/mac build generates Practical.xcodeproj and builds an unsigned generic iOS build. The keyboard extension requests open access and links KeyboardCore.
scripts/mac install picks the connected iPhone, unlocks the login keychain when it is locked, builds with automatic provisioning, then installs and launches the app. docs/device-checklist.md lists the manual steps.
The workflow calls the same scripts/on-mac scripts that scripts/mac runs over SSH.
Base automatically changed from scaffold/5-install to main November 19, 2026 12:57
AliceSaikawa and others added 2 commits November 19, 2026 21:57
Resolve the add/add conflict on AGENTS.md left by squash-merging the earlier stack layers.
This branch already contains everything in main.

AI-Harness: Claude Code
AI-Model: claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
head exits after the first line, so xcodebuild -version hit a broken pipe
on its second line and aborted. With pipefail this failed bootstrap on CI
intermittently. sed -n 1p reads all input and prints only the first line.

AI-Harness: Claude Code
AI-Model: claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@AliceSaikawa
AliceSaikawa merged commit f21e80b into main Nov 19, 2026
1 check passed
@AliceSaikawa
AliceSaikawa deleted the scaffold/6-ci branch November 19, 2026 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant