bcd2d73e70
- .gitea/workflows/ci.yml: lint, typecheck, build on push/PR - package.json: add typecheck script (tsc --noEmit) - eslint.config.mjs: add .js extensions for flat config module resolution
34 lines
625 B
YAML
34 lines
625 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
|
|
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
|
|
- name: Lint
|
|
run: npm run lint -- --max-warnings 0
|
|
continue-on-error: true
|
|
|
|
- name: TypeScript check
|
|
run: npm run typecheck
|
|
|
|
- name: Build
|
|
run: npm run build
|
|
env:
|
|
JWT_SECRET: ci-placeholder-secret
|
|
NEXT_TELEMETRY_DISABLED: 1
|