Skip to content

fix: wire all agency components to real API endpoints #32

fix: wire all agency components to real API endpoints

fix: wire all agency components to real API endpoints #32

Workflow file for this run

name: CI
on:
pull_request:
branches: [main, master]
jobs:
ci:
name: Type check, lint, test, build
runs-on: ubuntu-latest
env:
DATABASE_URL: ${{ secrets.CI_DATABASE_URL }}
DATABASE_URL_UNPOOLED: ${{ secrets.CI_DATABASE_URL_UNPOOLED }}
NEXT_PUBLIC_APP_URL: http://localhost:3001
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY: ${{ secrets.NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY }}
CLERK_SECRET_KEY: ${{ secrets.CLERK_SECRET_KEY }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
cache-dependency-path: package-lock.json
- name: Install dependencies
run: npm ci
- name: Generate Prisma client
run: npx prisma generate
- name: Type check
run: npm run typecheck
- name: Lint
run: npm run lint
- name: Run tests
run: npm run test --if-present
- name: Build
run: npm run build