Skip to content

Android Pull Request Check

Source: workflows/android-cloud-check.yml

Runner: ubuntu-latest

Usage

jobs:
  android-pull-request-check:
    uses: futuredapp/.github/.github/workflows/android-cloud-check.yml@2.7.0
    with:
      LINT_GRADLE_TASKS: '...'
      TEST_GRADLE_TASKS: '...'

Inputs

Name Type Required Default Description
LINT_GRADLE_TASKS string Yes — A Gradle task(s) for executing lint check, for example lintCheck lintRelease
TEST_GRADLE_TASKS string Yes — A Gradle task(s) for executing unit tests, for example testReleaseUnitTest or testDevEnterpriseUnitTest
USE_GIT_LFS boolean No False Whether to download Git-LFS files
TIMEOUT_MINUTES number No 30 Job timeout in minutes
JAVA_VERSION string No 17 Java version to use
JAVA_DISTRIBUTION string No zulu Java distribution to use
GRADLE_OPTS string No — Gradle options
RUNS_ON string No ubuntu-latest Runner label for the job, for example ubuntu-latest (default) or self-hosted to run the checks on the mac runners
SETUP_RUBY boolean No True Whether to install Ruby with ruby/setup-ruby (default). Set to false on runners whose image already ships Ruby, for example the self-hosted mac runners, where setup-ruby cannot create its tool cache
ANDROID_SDK_PACKAGES string No — When set, installs the Android SDK in the job (android-actions/setup-android) with these sdkmanager packages, for runners whose image has no SDK, for example platforms;android-36 build-tools;36.0.0 platform-tools
KOTLIN_NATIVE_CACHE boolean No False Caches ~/.konan/dependencies (LLVM, libffi) between runs; for KMP projects checked on macOS, where the Kotlin/Native toolchain downloads them on every fresh runner

Secrets

Name Required Description
GRADLE_CACHE_ENCRYPTION_KEY No Configuration cache encryption key
GITHUB_TOKEN_DANGER No GitHub token for Danger. Must have permissions to read and write issues and pull requests.

Internal Actions Used