Skip to content

feat(mobile): add a task straight from Today #329

feat(mobile): add a task straight from Today

feat(mobile): add a task straight from Today #329

Workflow file for this run

name: Frontend
on:
pull_request:
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
env:
# Build-time placeholders — real values are injected at deploy time.
VITE_API_URL: https://api.pomodoso.com
VITE_SUPABASE_URL: https://placeholder.supabase.co
VITE_SUPABASE_ANON_KEY: placeholder
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
# Every package at once, replacing the per-package steps this used to
# run. The extension was never type-checked here — only built and tested,
# and Vite strips types without checking them — so 38 errors accumulated
# unnoticed, one of which was a real null-handling bug. Checking the
# whole workspace is what stops that recurring.
- name: Type-check
run: pnpm typecheck
- name: Build web (tsc -b + vite)
run: pnpm --filter web build
- name: Build extension
run: pnpm --filter extension build
# Every package that has tests, not just the extension — the sync wire
# contract in @pomodoso/types is shared by both clients and is exactly
# the code where a silent disagreement corrupts data across devices.
- name: Test
run: pnpm -r test
- name: Bundle mobile (catches Metro/asset errors tsc can't see)
run: pnpm --filter mobile exec expo export --platform ios --platform android