Repository navigation
Run JVM and Android unit tests on pull requests - #28
Merged
Merged
Conversation
Until now tests only ran in publish.yml, right before a release. Add a workflow that runs :a2ui-4k:jvmTest and :a2ui-4k:testDebugUnitTest on every PR to main and on pushes to main, uploading the HTML reports when a run fails. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
setup-android@v3 installs the obsolete "tools" package by default, which no longer exists in the SDK repository and fails the step. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Same fix as the test workflow: setup-android@v3's default install of the obsolete "tools" package fails, so the next publish would break at SDK setup. The existing verify step still checks platform and build-tools 36. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merged
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.
Why
Tests only ran in
publish.yml, right before a release. A regression on a PR (like the failing test originally in #22) wouldn't surface until publish time.What
New
.github/workflows/test.yml:main, and pushes tomain../gradlew :a2ui-4k:jvmTest :a2ui-4k:testDebugUnitTestonubuntu-latest. Neither needs macOS, and Linux runners are faster and cheaper.publish.yml: JDK 21 (Temurin), Android SDK with platform and build-tools 36.gradle/actions/setup-gradle@v4for Gradle caching. That's the current name ofgradle-build-action, whichpublish.ymlstill uses.contentspermission.iOS and JS tests stay in
publish.yml'sallTests. They need a macOS runner and a browser, respectively.Android SDK setup fix (both workflows)
android-actions/setup-android@v3installs the obsoletetoolspackage by default. That package no longer exists in the SDK repository, so the setup step now fails. This PR's first run hit it. Bothtest.ymlandpublish.ymlnow passpackages: "platform-tools platforms;android-36 build-tools;36.0.0". Inpublish.ymlthis replaces the separatesdkmanager --installstep. The existing license and verify steps are unchanged.publish.ymllast succeeded on 2026-05-08, before the package was removed, so without this fix the next publish would fail at SDK setup.Testing
actionlint1.7.7.🤖 Generated with Claude Code