-
Notifications
You must be signed in to change notification settings - Fork 21
48 lines (45 loc) · 1.14 KB
/
build.yml
File metadata and controls
48 lines (45 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: build
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: ankane/setup-postgres@v1
with:
database: pgvector_node_test
dev-files: true
- run: |
cd /tmp
git clone --branch v0.8.2 https://github.com/pgvector/pgvector.git
cd pgvector
make
sudo make install
# Node.js
- uses: actions/setup-node@v6
with:
node-version: 24
- run: npm install
- run: npx prisma generate
- run: npx prisma migrate dev
- run: npm test
# Bun
- uses: oven-sh/setup-bun@v1
- run: bun install
- run: bunx prisma migrate reset --force
- run: bun run test
- run: |
cd examples/bun
bun install
createdb pgvector_example
bun run example.js
# Deno
- uses: denoland/setup-deno@v1
with:
deno-version: v2.x
- run: deno install
- run: deno task test
- run: |
cd examples/deno
deno install
deno run --allow-env --allow-net example.js