43 lines
897 B
YAML
43 lines
897 B
YAML
name: Branch Check
|
||
|
||
on:
|
||
push:
|
||
branches-ignore:
|
||
- main
|
||
pull_request:
|
||
branches:
|
||
- main
|
||
|
||
jobs:
|
||
check:
|
||
name: Type Check & Build
|
||
runs-on: ubuntu-latest
|
||
|
||
steps:
|
||
- name: Checkout
|
||
uses: actions/checkout@v4
|
||
|
||
- name: Setup Node.js
|
||
uses: actions/setup-node@v4
|
||
with:
|
||
node-version: '20'
|
||
cache: 'npm'
|
||
|
||
- name: Install dependencies
|
||
run: npm ci
|
||
|
||
- name: Type check
|
||
# googleapis добавляет очень тяжёлые .d.ts — без увеличения heap tsc падает с OOM (Ineffective mark-compacts)
|
||
env:
|
||
NODE_OPTIONS: --max-old-space-size=6144
|
||
run: npm run check
|
||
|
||
- name: Type check document worker
|
||
run: |
|
||
cd server/documents/worker
|
||
npm ci
|
||
npm run check
|
||
|
||
- name: Build
|
||
run: npm run build
|