You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Sprint 2][A] Add mobile checks to CI (lint, tsc, prettier) #37
CI currently runs only the backend job, so nothing checks mobile/ on pull requests. Problems pile up unnoticed: main already has 5 TypeScript errors, and #36 adds code that fails prettier --check.
Tasks
Add a mobile job to .github/workflows/ci.yml (Node + npm cache, working-directory: mobile, npm ci)
Run npm run lint
Run npx tsc --noEmit
Run npm run format:check
Fix the existing TypeScript errors on main so the job starts green:
src/app/(tabs)/_layout.tsx lines 21, 30, 57, 66: ColorValue is not assignable to string | NativeColorValue | undefined
src/app/(tabs)/_layout.tsx line 48: "/scan" is not a known route. The committed .expo/types/router.d.ts is stale and has no /scan.
Remove the tracked mobile/.expo/ files from git (git rm -r --cached mobile/.expo). The folder is already in .gitignore. The typed routes then need to be generated in CI before tsc, or come from a file that is kept up to date.
Done: Every pull request runs lint, typecheck and format check for mobile/, and the job passes on main.
Activity