Kuma/.github/workflows/ci.yml
2025-12-17 18:04:22 +01:00

47 lines
No EOL
1 KiB
YAML

name: CI Pipeline for S3-Kuma
on:
push:
branches: [main, dev]
pull_request:
branches: [dev]
env:
NEXT_PUBLIC_SUPABASE_URL: ${{ secrets.NEXT_PUBLIC_SUPABASE_URL }}
NEXT_PUBLIC_SUPABASE_ANON_KEY: ${{ secrets.NEXT_PUBLIC_SUPABASE_ANON_KEY }}
DATABASE_URL: ${{ secrets.DATABASE_URL }}
DIRECT_URL: ${{ secrets.DIRECT_URL }}
jobs:
build-and-test:
name: Build, Lint, Test
runs-on: ubuntu-latest
steps:
- name: 🧩 Checkout repository
uses: actions/checkout@v4
- name: 🛠 Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: 📦 Install dependencies
run: npm install
- name: 🔧 Generate Prisma Client
run: npx prisma generate
- name: 🔍 Lint code
run: npm run lint --workspaces=false
- name: 💅 Check formatting
run: npm run prettier:check --workspaces=false
- name: 🧪 Run tests
run: npm test
- name: 🏗 Build Next.js app
run: npm run build