Skip to content

phase 3

phase 3 #149

Workflow file for this run

name: Build CI
on:
pull_request:
branches: ["master"]
push:
branches: ["master"]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
services:
mysql:
image: mysql:8
env:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: devpulse
ports:
- 3306:3306
options: >-
--health-cmd="mysqladmin ping -h localhost"
--health-interval=10s
--health-timeout=5s
--health-retries=5
env:
DATABASE_URL: "mysql://root:root@localhost:3306/devpulse"
NEXTAUTH_SECRET: "super-duper-secret-auth-plz-dont-reveal"
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Setup Node
uses: actions/setup-node@v7
with:
node-version: "26"
- name: Install dependencies
run: npm ci
- name: Generate Prisma client
run: npx prisma generate
- name: Run migrations
run: npx prisma migrate deploy
- name: Typecheck
run: npx tsc --noEmit
- name: Build
run: npm run build