ci: build and upload Android APK on every push to master#13
Merged
Conversation
- Setting::current() now uses firstOrCreate (matches docblock intent of "creating it with defaults on first run") - Seed migration skips in testing environment so tests start with empty tables; transaction rollback handles isolation per-test - Remove redundant RefreshDatabase from uses() since TestCase already has it
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
.github/workflows/build-android.yml— triggers on every push tomaster(i.e. every merged PR)NATIVEPHP_ANDROID_DEBUG_SYMBOLS=NONE)interval-timer-v{version}(30-day retention)What the workflow does
actions/setup-java) — required by Gradle 8.x;$JAVA_HOMEis passed to NativePHP asNATIVEPHP_GRADLE_PATHplatforms;android-35andbuild-tools;35.0.0viasdkmanager(matchescompile_sdk/target_sdkinconfig/nativephp.php);$ANDROID_SDK_ROOTis passed asNATIVEPHP_ANDROID_SDK_LOCATIONcomposer install --no-dev—--no-devskips the local-pathnbucic/audio-ttspackage without errorsnpm ci && npm run build) — frontend assets must be built before bundlingphp artisan native:package android— produces the APK, signed with Android's auto-generated debug keystore (sideloadable, not Play Store submittable)version.json, retained for 30 daysNo secrets required
The APK is signed with the debug keystore that the Android SDK setup creates automatically. If explicit release signing is needed later, add
KEYSTORE_BASE64,KEYSTORE_PASSWORD,KEY_ALIAS, andKEY_PASSWORDsecrets and a post-buildapksignerstep.Generated by Claude Code