- Replace actions/checkout with git pull + local working-directory - Fixes corp proxy blocking GitHub action downloads
68 lines
1.7 KiB
YAML
68 lines
1.7 KiB
YAML
name: CI — ChronoMind
|
|
|
|
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
|
|
NEXT_TELEMETRY_DISABLED: '1'
|
|
|
|
jobs:
|
|
backend:
|
|
name: Backend — typecheck + test
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
working-directory: /Users/sd9235/code/mygh/learning_ai_clock
|
|
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 install --frozen-lockfile && pnpm build
|
|
|
|
- name: Install workspace dependencies
|
|
run: pnpm install
|
|
|
|
- name: Backend typecheck
|
|
run: pnpm --filter @chronomind/backend run typecheck
|
|
|
|
- name: Backend tests
|
|
run: pnpm --filter @chronomind/backend run test
|
|
|
|
web:
|
|
name: Web — typecheck + lint + test + build
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
working-directory: /Users/sd9235/code/mygh/learning_ai_clock
|
|
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 install --frozen-lockfile && pnpm build
|
|
|
|
- name: Install workspace dependencies
|
|
run: pnpm install
|
|
|
|
- name: Web typecheck
|
|
run: pnpm --filter web run typecheck
|
|
|
|
- name: Web lint
|
|
run: pnpm --filter web run lint
|
|
|
|
- name: Web test
|
|
run: pnpm --filter web run test
|
|
|
|
- name: Web build
|
|
run: pnpm --filter web run build
|