Files
Messenger/.github/workflows/android-ci.yml
Codex 8246fe6cae
Some checks failed
Android CI / android (push) Failing after 4m9s
CI / test (push) Has started running
ci: add android workflow for build test lint and detekt
2026-03-09 15:39:59 +03:00

46 lines
1.1 KiB
YAML

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