ci(cleanup): trim lint+test scope for faster pipelines

- ci.yaml: ./gradlew lint -> lintDebug, test -> testDebugUnitTest.
  Default lint task runs for BOTH debug and release variants which
  doubles the scan work; AGP's lint catalog is identical between
  variants for our scope so debug-only is sufficient. Same for test:
  testDebugUnitTest avoids running release-variant test compilation.

- release.yaml: drop lint step from ci-sanity job. Lint is enforced
  on every push to main via ci.yaml; by the time a tag exists at a
  main commit, lint has already passed. Release-sanity keeps test +
  assembleDebug to catch any tag-resolved drift (e.g. version code
  substitution issues).

Expected CI run time reduction: ~30% (lint accounts for the largest
single block of cold-cache work).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Jean-Luc Makiola
2026-06-08 17:03:08 +02:00
parent 0508ea9de5
commit bf83ae6d86
2 changed files with 7 additions and 6 deletions

View File

@@ -63,11 +63,11 @@ jobs:
- name: Grant execute permission for gradlew
run: chmod +x ./gradlew
- name: Lint
run: ./gradlew lint --no-daemon
- name: Lint (debug variant only)
run: ./gradlew lintDebug --no-daemon
- name: Unit tests
run: ./gradlew test --no-daemon
run: ./gradlew testDebugUnitTest --no-daemon
- name: Assemble debug APK
run: ./gradlew assembleDebug --no-daemon

View File

@@ -37,11 +37,12 @@ jobs:
- name: Grant execute permission for gradlew
run: chmod +x ./gradlew
- name: Lint
run: ./gradlew lint --no-daemon
# Lint already enforced on every push to main via ci.yaml.
# Release sanity only re-runs tests + a debug build to catch
# any tag-resolved drift (e.g. version code substitution issues).
- name: Unit tests
run: ./gradlew test --no-daemon
run: ./gradlew testDebugUnitTest --no-daemon
- name: Assemble debug APK (sanity)
run: ./gradlew assembleDebug --no-daemon