eef290a20a
Runs on push/PR to main: npm ci -> tsc --noEmit -> next build Also fixes eslint flat config imports and adds typecheck script
29 lines
492 B
YAML
29 lines
492 B
YAML
name: CI
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 20
|
|
cache: npm
|
|
|
|
- run: npm ci
|
|
|
|
- name: TypeScript check
|
|
run: npm run typecheck
|
|
|
|
- name: Build
|
|
run: npm run build
|
|
env:
|
|
JWT_SECRET: ci-placeholder-secret
|
|
NEXT_TELEMETRY_DISABLED: 1
|