name: Android CI on: push: branches: - main pull_request: branches: - main jobs: android: runs-on: ubuntu-latest steps: - name: Checkout uses: https://git.daemonlord.ru/actions/checkout@v4 with: fetch-depth: 0 - name: Set up JDK 17 uses: https://git.daemonlord.ru/actions/setup-java@v4 with: distribution: temurin java-version: 17 - name: Set up Android SDK uses: https://git.daemonlord.ru/actions/setup-android@v3 - name: Make Gradlew executable run: chmod +x ./android/gradlew - name: Build + Unit tests + Lint working-directory: android run: ./gradlew --no-daemon clean testDebugUnitTest lintDebug assembleDebug assembleDebugAndroidTest - name: Detekt (if configured) working-directory: android run: | if ./gradlew -q tasks --all | grep -q "detekt"; then ./gradlew --no-daemon detekt else echo "Detekt task is not configured, skipping." fi