Skip to content

feat: migrate to TanStack Query for data fetching and state management #15

feat: migrate to TanStack Query for data fetching and state management

feat: migrate to TanStack Query for data fetching and state management #15

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
name: TypeScript checks
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: "20"
cache: npm
- name: Install dependencies
run: npm ci
- name: Generate Prisma client
run: npm run db:generate
env:
DATABASE_URL: postgresql://postgres:postgres@localhost:5432/instrareply
- name: Typecheck
run: npm run typecheck
- name: Lint
run: npm run lint
- name: Run tests
run: npm test
- name: Build
run: npm run build
env:
DATABASE_URL: postgresql://postgres:postgres@localhost:5432/instrareply
REDIS_URL: redis://localhost:6379
NEXTAUTH_URL: http://localhost:3000
NEXTAUTH_SECRET: test-secret-for-ci-build
CRON_SECRET: test-secret-for-ci-cron
ENCRYPTION_KEY: 0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef
RESEND_API_KEY: re_test
EMAIL_FROM: "InstaReply <login@example.com>"
META_GRAPH_API_VERSION: v25.0
INSTAGRAM_APP_ID: test
INSTAGRAM_APP_SECRET: test
FACEBOOK_APP_SECRET: test
WEBHOOK_VERIFY_TOKEN: test