8
8
9
9
jobs :
10
10
test :
11
+ # only run on all pushes or pull requests from forks
12
+ if : github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
11
13
strategy :
12
14
matrix :
13
15
shard :
61
63
--health-retries 5
62
64
ports :
63
65
- 55433:5432
64
- # neon-proxy:
65
- # image: ghcr.io/timowilhelm/local-neon-http-proxy:main
66
- # env:
67
- # PG_CONNECTION_STRING: postgres://postgres:postgres@postgres:5432/postgres
68
- # ports:
69
- # - 4444:4444
70
- # pg-proxy:
71
- # image: ghcr.io/neondatabase/wsproxy:latest
72
- # env:
73
- # APPEND_PORT: 'postgres:5432'
74
- # ALLOW_ADDR_REGEX: '.*'
75
- # ports:
76
- # 5446:80
77
66
mysql :
78
67
image : mysql:8
79
68
env :
@@ -189,12 +178,6 @@ jobs:
189
178
pnpm vitest run tests/pg/neon-http.test.ts tests/pg/neon-http-batch.test.ts
190
179
;;
191
180
192
- neon-http-batch)
193
- docker compose -f docker-neon.yml up -d
194
- pnpm vitest run tests/pg/neon-http-batch.test.ts
195
- docker compose -f docker-neon.yml down
196
- ;;
197
-
198
181
neon-serverless)
199
182
docker compose -f docker-neon.yml up -d
200
183
pnpm vitest run tests/pg/neon-serverless.test.ts
@@ -264,6 +247,9 @@ jobs:
264
247
- name : Install dependencies
265
248
run : pnpm install
266
249
250
+ - name : Install Bun
251
+ uses : oven-sh/setup-bun@v2
252
+
267
253
- name : Check preconditions
268
254
id : checks
269
255
shell : bash
@@ -286,32 +272,23 @@ jobs:
286
272
} >> $GITHUB_OUTPUT
287
273
fi
288
274
275
+ - name : Build Prisma client
276
+ working-directory : drizzle-orm
277
+ run : pnpm prisma generate --schema src/prisma/schema.prisma
278
+
289
279
- name : Build
290
280
if : steps.checks.outputs.has_new_release == 'true'
291
- run : |
292
- (
293
- cd drizzle-orm
294
- pnpm prisma generate --schema src/prisma/schema.prisma
295
- )
296
- pnpm build
281
+ run : pnpm build
297
282
298
283
- name : Pack
299
284
if : steps.checks.outputs.has_new_release == 'true'
300
285
working-directory : ${{ matrix.package }}
301
- shell : bash
302
- env :
303
- NODE_AUTH_TOKEN : ${{ secrets.NPM_ACCESS_TOKEN }}
304
- run : |
305
- npm run pack
286
+ run : npm run pack
306
287
307
288
- name : Run @arethetypeswrong/cli
308
289
if : steps.checks.outputs.has_new_release == 'true'
309
290
working-directory : ${{ matrix.package }}
310
- shell : bash
311
- env :
312
- NODE_AUTH_TOKEN : ${{ secrets.NPM_ACCESS_TOKEN }}
313
- run : |
314
- pnpm attw package.tgz
291
+ run : bunx attw package.tgz
315
292
316
293
release :
317
294
# only run on all pushes or pull requests from forks
0 commit comments