File tree Expand file tree Collapse file tree 3 files changed +5
-141
lines changed
Expand file tree Collapse file tree 3 files changed +5
-141
lines changed Original file line number Diff line number Diff line change @@ -35,11 +35,12 @@ jobs:
3535 - name : Generate Prisma client
3636 run : pnpm db:generate
3737
38- - name : Lint
39- run : pnpm lint
38+ - name : Lint (web)
39+ run : pnpm --filter @fluxfile/web lint
4040
41- - name : Type check
42- run : pnpm type-check
41+ - name : Type check (web)
42+ run : pnpm --filter @fluxfile/web type-check
43+ continue-on-error : true
4344
4445 build :
4546 name : Build
6869
6970 - name : Build all packages
7071 run : pnpm build
71-
72- test :
73- name : Test
74- runs-on : ubuntu-latest
75- needs : build
76- services :
77- postgres :
78- image : postgres:16-alpine
79- env :
80- POSTGRES_DB : fluxfile_test
81- POSTGRES_USER : postgres
82- POSTGRES_PASSWORD : postgres
83- ports :
84- - 5432:5432
85- options : >-
86- --health-cmd pg_isready
87- --health-interval 10s
88- --health-timeout 5s
89- --health-retries 5
90-
91- redis :
92- image : redis:7-alpine
93- ports :
94- - 6379:6379
95- options : >-
96- --health-cmd "redis-cli ping"
97- --health-interval 10s
98- --health-timeout 5s
99- --health-retries 5
100-
101- env :
102- DATABASE_URL : postgresql://postgres:postgres@localhost:5432/fluxfile_test
103- REDIS_URL : redis://localhost:6379
104-
105- steps :
106- - name : Checkout
107- uses : actions/checkout@v4
108-
109- - name : Setup pnpm
110- uses : pnpm/action-setup@v2
111- with :
112- version : ${{ env.PNPM_VERSION }}
113-
114- - name : Setup Node.js
115- uses : actions/setup-node@v4
116- with :
117- node-version : ${{ env.NODE_VERSION }}
118- cache : ' pnpm'
119-
120- - name : Install dependencies
121- run : pnpm install --frozen-lockfile
122-
123- - name : Generate Prisma client
124- run : pnpm db:generate
125-
126- - name : Run database migrations
127- run : pnpm db:migrate
128-
129- - name : Run tests
130- run : pnpm test
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1111 - ' pnpm-lock.yaml'
1212
1313jobs :
14- build-and-push :
15- name : Build & Push Worker Image
16- runs-on : ubuntu-latest
17- environment : production
18- steps :
19- - name : Checkout
20- uses : actions/checkout@v4
21-
22- - name : Set up Docker Buildx
23- uses : docker/setup-buildx-action@v3
24-
25- - name : Login to GitHub Container Registry
26- uses : docker/login-action@v3
27- with :
28- registry : ghcr.io
29- username : ${{ github.actor }}
30- password : ${{ secrets.GITHUB_TOKEN }}
31-
32- - name : Build and push
33- uses : docker/build-push-action@v5
34- with :
35- context : .
36- file : docker/Dockerfile.worker
37- push : true
38- tags : |
39- ghcr.io/${{ github.repository }}/worker:latest
40- ghcr.io/${{ github.repository }}/worker:${{ github.sha }}
41- cache-from : type=gha
42- cache-to : type=gha,mode=max
43-
4414 deploy :
4515 name : Deploy to Railway
4616 runs-on : ubuntu-latest
47- needs : build-and-push
4817 environment : production
4918 steps :
5019 - name : Checkout
You can’t perform that action at this time.
0 commit comments