Skip to content

ci: add lightweight JVM unit test workflow for my-releases - #64

Open
ending3729 wants to merge 1 commit into
patterniha:my-releasesfrom
ending3729:ci/unit-tests-my-releases
Open

ending3729 wants to merge 1 commit into
patterniha:my-releasesfrom
ending3729:ci/unit-tests-my-releases

Conversation

@ending3729

Copy link
Copy Markdown

Adds a standalone .github/workflows/unit-test.yml workflow targeting my-releases so :app:testPlaystoreDebugUnitTest runs automatically on pushes and PRs without invoking the full NDK/Rust/Go/signing release pipeline (build.yml).

Why

  • Commits dcff264 and 1b7060d noted no local Android SDK is available, leaving :app:testPlaystoreDebugUnitTest unrun until a full release build.
  • Keeps zero overlap with upstream 2dust/v2rayNG workflows (build.yml, fastlane.yml) and needs no repository secrets (permissions: contents: read).

What it does

  • Initializes only AndroidLibXrayLite to resolve its tag and downloads the matching libv2ray.aar asset.
  • Sets up Temurin Java 21, Android SDK (platforms;android-37.1, build-tools;37.0.0), and Gradle caching (gradle/actions/setup-gradle@v6).
  • Runs ./gradlew :app:testPlaystoreDebugUnitTest --no-daemon and uploads HTML test reports only on failure.

Verification

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant