-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (30 loc) · 837 Bytes
/
ci.yml
File metadata and controls
39 lines (30 loc) · 837 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: CI
on:
push:
pull_request:
jobs:
build-and-verify:
runs-on: ubuntu-latest
timeout-minutes: 15
env:
NEXT_TELEMETRY_DISABLED: 1
NODE_ENV: production
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
# SPDX header check (fails if any target file lacks the header)
- name: Verify SPDX headers
run: node scripts/verify-headers.mjs
# Generate Prisma client explicitly (don't rely on postinstall)
- name: Prisma generate
run: npx prisma generate
# Build Next.js directly, even if no "build" script exists
- name: Build
run: npx next build