feat: migrate to TanStack Query for data fetching and state management #15
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |