Skip to content

Merge pull request #4 from appdevforall/chore/phase0-guardrails #53

Merge pull request #4 from appdevforall/chore/phase0-guardrails

Merge pull request #4 from appdevforall/chore/phase0-guardrails #53

name: Android Sanity Check (CI)
on:
push:
branches: [ "**" ]
pull_request:
branches: [ "main", "development" ]
jobs:
check-syntax:
name: Lint & Compile Check
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./controller
steps:
- name: Checkout Project Code
uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up Java 17
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17'
cache: 'gradle'
- name: Grant Execute Permission to Gradlew
run: chmod +x gradlew
# Phase 0 safety net: unit tests are a BLOCKING gate.
- name: Run Unit Tests
run: ./gradlew testDebugUnitTest --stacktrace
# Lint runs for visibility only and never blocks the job (continue-on-error).
# Scoped to :app so the vendored termux-core/upstream lint backlog does not fail CI.
# Once the :app lint backlog is triaged, set abortOnError=true and drop continue-on-error.
- name: Run Android Lint (reporting, non-blocking)
continue-on-error: true
run: ./gradlew :app:lintDebug
- name: Compile Test (Assemble Debug)
run: ./gradlew assembleDebug --stacktrace