Skip to content

Commit 08af44b

Browse files
committed
ci(android): add ktlint lane to the Android CI job
Android formatting drift kept landing on main because CI never ran ktlintCheck (see the #100304 manual sweep). Adds an android-ktlint matrix lane mirroring pnpm android:lint.
1 parent dd5f814 commit 08af44b

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,7 @@ jobs:
404404
{ check_name: "android-test-play", task: "test-play" },
405405
{ check_name: "android-test-third-party", task: "test-third-party" },
406406
{ check_name: "android-build-play", task: "build-play" },
407+
{ check_name: "android-ktlint", task: "ktlint" },
407408
]
408409
: [],
409410
),
@@ -2088,6 +2089,10 @@ jobs:
20882089
build-play)
20892090
./gradlew --no-daemon --build-cache :app:assemblePlayDebug
20902091
;;
2092+
ktlint)
2093+
# Mirrors `pnpm android:lint`; keeps formatting drift out of main (see PR #100304 sweep).
2094+
./gradlew --no-daemon --build-cache :app:ktlintCheck :benchmark:ktlintCheck
2095+
;;
20912096
*)
20922097
echo "Unsupported Android task: $TASK" >&2
20932098
exit 1

0 commit comments

Comments
 (0)