CI: build & test job + CI status badge (#21)#46
Merged
Conversation
Adds the build/test pillar of the CI pipeline alongside the existing DocC gate: a `build-test` job runs `swift build` and `swift test` on macos-15 (Xcode 16.4), on every PR and push to master. Tests run against the ReliaBLEMock target, so no real CoreBluetooth hardware is required. Also adds a CI status badge to the README. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AGygGSiuD4mh8b8rYkZR4A
This commit will be reverted; it exists only to confirm CI and the status badge correctly report a failing state before restoring green. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AGygGSiuD4mh8b8rYkZR4A
Removes the temporary failing test added to verify CI/badge failure reporting. Final PR state is passing. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AGygGSiuD4mh8b8rYkZR4A
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.
Implements the remaining pieces of #21 (NFR 11 — Continuous Integration), except SwiftLint which is split out to #45.
Changes
.github/workflows/ci.yml— newbuild-testjob runningswift buildandswift testonmacos-15(Xcode 16.4, matching the existing DocC job's toolchain selection). Runs on every PR and push tomaster. Tests run against theReliaBLEMocktarget, so no real CoreBluetooth hardware is needed. Existingdocc/deploy-docsjobs are untouched.README.md— added the CI status badge.Not in this PR
Verification
Swift/Xcode isn't available in this Linux environment, so
swift build/swift testrun in CI onmacos-15rather than locally. The workflow YAML was syntax-checked. CI on this PR is the validator.Relates to #21.
🤖 Generated with Claude Code
Generated by Claude Code