42 lines
764 B
YAML
42 lines
764 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
env:
|
|
TURBO_TELEMETRY_DISABLED: 1
|
|
|
|
jobs:
|
|
build:
|
|
name: Lint, typecheck, test, build
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: pnpm/action-setup@v4
|
|
with:
|
|
version: 9
|
|
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '22'
|
|
cache: 'pnpm'
|
|
|
|
- name: Install dependencies
|
|
run: pnpm install --frozen-lockfile
|
|
|
|
- name: Format check
|
|
run: pnpm format:check
|
|
|
|
- name: Typecheck
|
|
run: pnpm -r typecheck
|
|
|
|
- name: Test
|
|
run: pnpm -r test
|
|
|
|
- name: Build
|
|
run: pnpm -r --filter=./packages/* build && pnpm -r --filter=./apps/* build
|