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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user