Skip to content

feat: update Next.js version to ^16.0.8 in package.json and package-l… #20

feat: update Next.js version to ^16.0.8 in package.json and package-l…

feat: update Next.js version to ^16.0.8 in package.json and package-l… #20

Workflow file for this run

name: ci
on:
push:
branches:
- main
pull_request:
jobs:
ci:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:16
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: cherry_test
ports:
- 5432:5432
options: >-
--health-cmd="pg_isready -U postgres"
--health-interval=10s
--health-timeout=5s
--health-retries=5
env:
DATABASE_URL: postgresql://postgres:postgres@localhost:5432/cherry_test
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Check clean working tree
run: npm run check:clean
- name: Generate Prisma client
run: npx prisma generate
- name: Check guardrails
run: npm run check:guardrails
- name: Apply Prisma migrations to test DB
run: npx prisma migrate deploy
- name: Check routes structure
run: npm run check:routes
- name: Check engine freeze
run: npm run check:engine-freeze
- name: Lint
run: npm run lint
- name: Typecheck scripts
run: npm run typecheck:scripts
- name: Typecheck
run: npm run typecheck
- name: Test
run: npm test
- name: Build
run: npm run build