ci: add android workflow for build test lint and detekt
Some checks failed
Android CI / android (push) Failing after 4m9s
CI / test (push) Has started running

This commit is contained in:
Codex
2026-03-09 15:39:59 +03:00
parent b5cd371f8b
commit 8246fe6cae
7 changed files with 403 additions and 1 deletions

45
.github/workflows/android-ci.yml vendored Normal file
View File

@@ -0,0 +1,45 @@
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