-
Notifications
You must be signed in to change notification settings - Fork 13
Adding Android CI #189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding Android CI #189
Conversation
Adds a new build-android job that tests MistKit on Android platform using Ubuntu runners with Android emulators. Tests across Swift versions 6.1 and 6.2 with Android API levels 28, 33, and 34 (6 total configurations). Includes coverage upload to Codecov with Android-specific flags. Uses brightdigit/swift-build@14-android-skip action with full emulator support for running tests on Android platform. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Updates swift-openapi-urlsession from 1.1.0 to 1.2.0, which includes support for Android platform. This is required for the Android CI builds added in the previous commit. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Add sersoft-gmbh/swift-coverage-action@v4 step to the Android build job to extract coverage files before uploading to codecov. This fixes the codecov upload failure (exit code 1) by ensuring coverage files are properly extracted and passed to the codecov action. Changes: - Add swift-coverage-action@v4 step with fail-on-empty-output - Add files parameter to codecov upload step - Match the working pattern from Ubuntu build job Fixes https://github.com/brightdigit/MistKit/actions/runs/20246143492 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Add --enable-code-coverage flag to android-swift-test-flags to ensure coverage data is generated during test execution. This should resolve the "No coverage files found" error from swift-coverage-action. The Ubuntu builds automatically generate coverage, but Android builds on the 14-android-skip branch require explicit coverage enablement via test flags. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
- Remove android-swift-test-flags: --enable-code-coverage (not supported) - Add comprehensive coverage file search to diagnose what's available - Search for Swift coverage files (.profdata, .profraw) - Search for Android coverage files (.ec, .exec, jacoco.xml) - Check for LLVM coverage tools availability - List build directory structure for debugging 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
- Remove diagnostic coverage search step - Remove swift-coverage-action step - Remove codecov upload step - Add comment explaining why coverage is not supported The Swift Android SDK does not include LLVM coverage tools (llvm-profdata, llvm-cov), making code coverage impossible for Android builds. Tests still run successfully. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## v1.0.0-alpha.4 #189 +/- ##
==================================================
- Coverage 14.33% 14.31% -0.02%
==================================================
Files 67 67
Lines 7179 7179
==================================================
- Hits 1029 1028 -1
- Misses 6150 6151 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
PR Review: Adding Android CIOverviewThis PR adds Android CI builds to the GitHub Actions workflow and updates a dependency. Overall, this is a good addition to expand platform coverage. Here's my detailed feedback: ✅ Positive Aspects
|
.github/workflows/MistKit.yml
Outdated
| android-api-level: [28, 33, 34] | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: brightdigit/swift-build@14-android-skip |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
switch to tag
Pull Request Review: Adding Android CIOverviewThis PR adds Android CI support to MistKit, testing against Swift 6.1 and 6.2 across Android API levels 28, 33, and 34. It also updates ✅ Positive Aspects
|
Pull Request Review: Adding Android CIOverviewThis PR adds Android platform support to the CI/CD pipeline, along with dependency version bumps. Overall, this is a solid addition that expands platform coverage, but there are a few items that need attention. ✅ Strengths
|
No description provided.