mirror of
https://github.com/immissmandy/Kitchen.git
synced 2026-07-27 12:25:30 +02:00
38 lines
933 B
YAML
38 lines
933 B
YAML
name: KitchenStock Quality CI
|
|
|
|
on:
|
|
push:
|
|
branches: [ main, master ]
|
|
pull_request:
|
|
branches: [ main, master ]
|
|
|
|
jobs:
|
|
quality:
|
|
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 ci --legacy-peer-deps
|
|
|
|
- name: Run Typecheck
|
|
run: npm run typecheck
|
|
|
|
- name: Run Vitest Unit Tests
|
|
run: npm run test
|
|
|
|
- name: Build Next.js Production App
|
|
run: npm run build
|
|
env:
|
|
NEXT_PUBLIC_SUPABASE_URL: ${{ secrets.NEXT_PUBLIC_SUPABASE_URL || 'https://demo.supabase.co' }}
|
|
NEXT_PUBLIC_SUPABASE_ANON_KEY: ${{ secrets.NEXT_PUBLIC_SUPABASE_ANON_KEY || 'demo-key' }}
|
|
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY || 'demo-key' }}
|