Skip to content

Commit 3d1ddb1

Browse files
committed
Use Bun for attw
1 parent 69d5dfd commit 3d1ddb1

File tree

1 file changed

+12
-35
lines changed

1 file changed

+12
-35
lines changed

.github/workflows/release-feature-branch.yaml

+12-35
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ on:
88

99
jobs:
1010
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
1113
strategy:
1214
matrix:
1315
shard:
@@ -61,19 +63,6 @@ jobs:
6163
--health-retries 5
6264
ports:
6365
- 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
7766
mysql:
7867
image: mysql:8
7968
env:
@@ -189,12 +178,6 @@ jobs:
189178
pnpm vitest run tests/pg/neon-http.test.ts tests/pg/neon-http-batch.test.ts
190179
;;
191180
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-
198181
neon-serverless)
199182
docker compose -f docker-neon.yml up -d
200183
pnpm vitest run tests/pg/neon-serverless.test.ts
@@ -264,6 +247,9 @@ jobs:
264247
- name: Install dependencies
265248
run: pnpm install
266249

250+
- name: Install Bun
251+
uses: oven-sh/setup-bun@v2
252+
267253
- name: Check preconditions
268254
id: checks
269255
shell: bash
@@ -286,32 +272,23 @@ jobs:
286272
} >> $GITHUB_OUTPUT
287273
fi
288274
275+
- name: Build Prisma client
276+
working-directory: drizzle-orm
277+
run: pnpm prisma generate --schema src/prisma/schema.prisma
278+
289279
- name: Build
290280
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
297282

298283
- name: Pack
299284
if: steps.checks.outputs.has_new_release == 'true'
300285
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
306287

307288
- name: Run @arethetypeswrong/cli
308289
if: steps.checks.outputs.has_new_release == 'true'
309290
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
315292

316293
release:
317294
# only run on all pushes or pull requests from forks

0 commit comments

Comments
 (0)