build: retire Pi Mobile's APK workflow and hook; check apps/p2 instead

Pi Mobile (apps/mobile in pi-private) is replaced by p2 (apps/p2). The Android APK workflow and its pre-commit
check go; the hook runs p2's own check when apps/p2 exists (only in pi-private).
This commit is contained in:
Mario Zechner 2026-10-12 13:57:43 +00:00
parent da0eadf043
commit b0ac39687a
2 changed files with 6 additions and 102 deletions

View file

@ -16,16 +16,16 @@ if [ $? -ne 0 ]; then
exit 1
fi
# Pi Mobile has its own check (own biome.json, TypeScript 5.9; apps/ is outside the root Biome and tsc configs).
# p2 has its own check (own biome.json, TypeScript 5.9; apps/ is outside the root Biome and tsc configs).
# apps/ exists only in pi-private.
if [ -d apps/mobile ]; then
if [ -d apps/p2 ]; then
for file in $STAGED_FILES; do
case "$file" in
apps/mobile/*|packages/*|package.json|package-lock.json|tsconfig.json|tsconfig.base.json)
echo "Checking apps/mobile..."
npm --prefix apps/mobile run check
apps/p2/*|packages/*|package.json|package-lock.json|tsconfig.json|tsconfig.base.json)
echo "Checking apps/p2..."
npm --prefix apps/p2 run check
if [ $? -ne 0 ]; then
echo "❌ apps/mobile checks failed."
echo "❌ apps/p2 checks failed."
exit 1
fi
break