@@ -11,7 +11,6 @@ concurrency:
1111 cancel-in-progress : true
1212
1313jobs :
14- # ─── Tests ───────────────────────────────────────────
1514 test :
1615 name : Test
1716 runs-on : ubuntu-latest
@@ -31,15 +30,20 @@ jobs:
3130 - name : Generate Prisma client
3231 run : cd backend && bun x prisma generate
3332
33+ - name : Type check backend
34+ run : cd backend && bun x tsc -p tsconfig.build.json --noEmit
35+
36+ - name : Type check frontend
37+ run : cd apps/web && bun x tsc --noEmit
38+
3439 - name : Run backend tests
3540 run : cd backend && bun run test
3641
3742 - name : Run frontend tests
3843 run : cd apps/web && bun run test
3944
40- # ─── Deploy backend to Railway (only on main) ───────
41- deploy-backend :
42- name : Deploy Backend (Railway)
45+ deploy :
46+ name : Deploy
4347 needs : test
4448 if : github.ref == 'refs/heads/main' && github.event_name == 'push'
4549 runs-on : ubuntu-latest
@@ -49,35 +53,10 @@ jobs:
4953 - name : Install Railway CLI
5054 run : npm install -g @railway/cli
5155
52- - name : Deploy to Railway
56+ - name : Deploy backend to Railway
5357 run : railway up --service ${{ vars.RAILWAY_SERVICE_NAME }}
5458 env :
5559 RAILWAY_TOKEN : ${{ secrets.RAILWAY_TOKEN }}
5660
57- # ─── Deploy frontend to Vercel (only on main) ───────
58- deploy-frontend :
59- name : Deploy Frontend (Vercel)
60- needs : test
61- if : github.ref == 'refs/heads/main' && github.event_name == 'push'
62- runs-on : ubuntu-latest
63- steps :
64- - uses : actions/checkout@v4
65-
66- - uses : oven-sh/setup-bun@v2
67- with :
68- bun-version : " 1.3.6"
69-
70- - name : Install Vercel CLI
71- run : npm install -g vercel
72-
73- - name : Pull Vercel env
74- run : vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
75- working-directory : apps/web
76-
77- - name : Build
78- run : vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
79- working-directory : apps/web
80-
81- - name : Deploy
82- run : vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}
83- working-directory : apps/web
61+ - name : Deploy frontend to Vercel
62+ run : curl -s -X POST "${{ secrets.VERCEL_DEPLOY_HOOK }}"
0 commit comments