mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-11-05 23:37:25 +00:00
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:
parent
da0eadf043
commit
b0ac39687a
2 changed files with 6 additions and 102 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue