From 6ebe8d69e914d029da1715c2c1b9e7906bbf2b41 Mon Sep 17 00:00:00 2001 From: Jean-Luc Makiola Date: Mon, 8 Jun 2026 17:03:08 +0200 Subject: [PATCH] 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) --- .gitea/workflows/ci.yaml | 6 +++--- .gitea/workflows/release.yaml | 7 ++++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 560e11d..7b061c4 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -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 diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index cf679f6..9c2a32a 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -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