fix: buid error again #79
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: Pull Request Checks | |
| on: | |
| pull_request: | |
| branches: | |
| - dev | |
| - main | |
| push: | |
| branches: | |
| - dev | |
| - main | |
| jobs: | |
| build-check: | |
| runs-on: ubuntu-latest | |
| env: | |
| NODE_ENV: test | |
| DATABASE_URL: ${{ secrets.DATABASE_URL }} | |
| DIRECT_URL: ${{ secrets.DIRECT_URL }} | |
| TWILIO_ACCOUNT_SID: ${{ secrets.TWILIO_ACCOUNT_SID }} | |
| TWILIO_AUTH_TOKEN: ${{ secrets.TWILIO_AUTH_TOKEN }} | |
| TWILIO_VERIFY_SERVICE_SID: ${{ secrets.TWILIO_VERIFY_SERVICE_SID }} | |
| JWT_SECRET: ${{ secrets.JWT_SECRET }} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Run TypeScript type check | |
| run: npx tsc --noEmit | |
| - name: Build project | |
| run: npm run build | |
| - name: Check Prisma schema | |
| run: npx prisma validate | |
| - name: Generate Prisma client | |
| run: npx prisma generate |