Repository navigation
Add CI: package tests and iOS builds - #16
Merged
Merged
Conversation
No CI ran the tests or built the apps in the repository. The workflow runs on pushes to main and on pull requests. One job runs swift test on macOS. The other builds the package, the demo app, the chat sample and the benchmark app for iOS, without code signing. Refs #11. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
checksSettledResult was on only when the XCTestCase class was loaded. With Xcode 26.6, swift test runs Swift Testing tests without loading XCTest, so the cross-check was off and settledResultIsCheckedInTests failed on CI. A loaded .xctest bundle, or an .xctest path in the runner's arguments, now also turns it on. Neither is there in an app. Refs #11. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a GitHub Actions workflow that runs on pushes to
mainand on pull requests:swift test.generic/platform=iOSand without code signing. The app builds pass-skipMacroValidation, because the runner cannot approve package macros.The workflow has read-only permissions, and a newer run on the same branch cancels an older one.
Refs #11. This PR does not add release tags or a changelog: the first version number is a decision for the maintainer.
A fix that the first CI run found
On the runner, with Xcode 26.6,
swift testran the Swift Testing tests without loading XCTest.InlineParser.checksSettledResultwas on only when theXCTestCaseclass was loaded, so the parser cross-check was off andsettledResultIsCheckedInTestsfailed. The second commit also turns the check on when a.xctestbundle is loaded, or when the runner's arguments name one. Neither is there in an app, so apps keep the check off.Tests
🤖 Generated with Claude Code