ci: add Android Lint as first step of the Android job

Android Lint catches API-level, deprecation, accessibility, and resource
issues that spotless and unit tests miss. Run lint on the same variants
that get assembled (fdroidBenchmark, playBenchmark) before tests so a
lint failure surfaces quickly without consuming the full test budget.

Lint reports are uploaded as artifacts for inspection.
This commit is contained in:
davotoula
2026-04-25 17:04:50 +02:00
parent 1876941d8f
commit fd1776fd07
+10
View File
@@ -89,6 +89,16 @@ jobs:
java-version: 21
cache: gradle
- name: Android Lint (gradle)
run: ./gradlew :amethyst:lintFdroidBenchmark :amethyst:lintPlayBenchmark --no-daemon
- name: Upload Android Lint Reports
uses: actions/upload-artifact@v7
if: always()
with:
name: Android Lint Reports
path: amethyst/build/reports/lint-results-*.html
- name: Test + Build Android (gradle)
run: ./gradlew test assembleBenchmark --no-daemon