learning_ai_notes/.gitea/workflows/ci.yml
saravanakumardb1 1da2dcc7d9 fix(ci): skip common-plat install + add HUSKY=0
- Remove pnpm install from common-plat build step (deps already local)
- Add HUSKY=0 to prevent husky install failure in CI
2026-03-22 21:12:03 -07:00

87 lines
2.3 KiB
YAML

name: CI — NoteLett
on:
push:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
DB_PROVIDER: memory
JWT_SECRET: ci-test-secret-at-least-32-characters-long
jobs:
backend:
name: Backend — typecheck + test + build
runs-on: ubuntu-latest
defaults:
run:
working-directory: /Users/sd9235/code/mygh/learning_ai_notes
steps:
- name: Pull latest
run: git pull --ff-only origin main || true
- name: Build @bytelyst/* packages
working-directory: /Users/sd9235/code/mygh/learning_ai_common_plat
run: pnpm -r --filter './packages/**' build
- name: Install workspace dependencies
run: HUSKY=0 pnpm install --frozen-lockfile
- name: Backend typecheck
run: pnpm --filter @notelett/backend run typecheck
- name: Backend tests
run: pnpm --filter @notelett/backend run test
- name: Backend build
run: pnpm --filter @notelett/backend run build
web:
name: Web — typecheck + test + build
runs-on: ubuntu-latest
defaults:
run:
working-directory: /Users/sd9235/code/mygh/learning_ai_notes
steps:
- name: Pull latest
run: git pull --ff-only origin main || true
- name: Build @bytelyst/* packages
working-directory: /Users/sd9235/code/mygh/learning_ai_common_plat
run: pnpm -r --filter './packages/**' build
- name: Install workspace dependencies
run: HUSKY=0 pnpm install --frozen-lockfile
- name: Web typecheck
run: pnpm --filter @notelett/web run typecheck
- name: Web tests
run: pnpm --filter @notelett/web run test
- name: Web build
run: pnpm --filter @notelett/web run build
mobile:
name: Mobile — typecheck
runs-on: ubuntu-latest
defaults:
run:
working-directory: /Users/sd9235/code/mygh/learning_ai_notes
steps:
- name: Pull latest
run: git pull --ff-only origin main || true
- name: Build @bytelyst/* packages
working-directory: /Users/sd9235/code/mygh/learning_ai_common_plat
run: pnpm -r --filter './packages/**' build
- name: Install workspace dependencies
run: HUSKY=0 pnpm install --frozen-lockfile
- name: Mobile typecheck
run: pnpm --filter @notelett/mobile run typecheck