From fd1776fd07921977ed1a26189c15dac4bbb4a1c5 Mon Sep 17 00:00:00 2001 From: davotoula Date: Sat, 25 Apr 2026 17:04:50 +0200 Subject: [PATCH] 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. --- .github/workflows/build.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4dede1dba..a120a8a5e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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