ReviewOS

also looking at this

stacks/bun-query-builder

chore(deps): update all non-major dependencies

#16
Closed chrisbbreuer wants to merge buddy-bot/update-non-major-updates-1756152880175 into main
4 files +49 -20
.github/workflows/ci.ymlmodified+33-7
Changes to .github/workflows/ci.yml
@@ -24,7 +24,7 @@ jobs:
2424 uses: oven-sh/setup-bun@v2
2525
2626 - name: Use cached node_modules
27 uses: actions/cache@v4
27 uses: actions/cache@v4.2.4
2828 with:
2929 path: node_modules
3030 key: node-modules-${{ hashFiles('**/bun.lock') }}
@@ -47,7 +47,7 @@ jobs:
4747 uses: oven-sh/setup-bun@v2
4848
4949 - name: Use cached node_modules
50 uses: actions/cache@v4
50 uses: actions/cache@v4.2.4
5151 with:
5252 path: node_modules
5353 key: node-modules-${{ hashFiles('**/bun.lock') }}
@@ -63,6 +63,29 @@ jobs:
6363 test:
6464 runs-on: ubuntu-latest
6565
66 services:
67 postgres:
68 image: postgres:15
69 env:
70 POSTGRES_PASSWORD: postgres
71 POSTGRES_USER: postgres
72 POSTGRES_DB: test_db
73 options: >-
74 --health-cmd pg_isready
75 --health-interval 10s
76 --health-timeout 5s
77 --health-retries 5
78 ports:
79 - 5432:5432
80
81 env:
82 DATABASE_URL: postgresql://postgres:postgres@localhost:5432/test_db
83 POSTGRES_HOST: localhost
84 POSTGRES_PORT: 5432
85 POSTGRES_USER: postgres
86 POSTGRES_PASSWORD: postgres
87 POSTGRES_DB: test_db
88
6689 steps:
6790 - uses: actions/checkout@v4
6891
@@ -70,7 +93,7 @@ jobs:
7093 uses: oven-sh/setup-bun@v2
7194
7295 - name: Use cached node_modules
73 uses: actions/cache@v4
96 uses: actions/cache@v4.2.4
7497 with:
7598 path: node_modules
7699 key: node-modules-${{ hashFiles('**/bun.lock') }}
@@ -80,6 +103,12 @@ jobs:
80103 - name: Install Dependencies
81104 run: bun install
82105
106 - name: Wait for PostgreSQL
107 run: |
108 echo "Waiting for PostgreSQL to be ready..."
109 timeout 60 bash -c 'until pg_isready -h localhost -p 5432 -U postgres; do sleep 1; done'
110 echo "PostgreSQL is ready!"
111
83112 - name: Unit Test
84113 run: bun test
85114
@@ -93,7 +122,7 @@ jobs:
93122 uses: oven-sh/setup-bun@v2
94123
95124 - name: Use cached node_modules
96 uses: actions/cache@v4
125 uses: actions/cache@v4.2.4
97126 with:
98127 path: node_modules
99128 key: node-modules-${{ hashFiles('**/bun.lock') }}
@@ -105,6 +134,3 @@ jobs:
105134
106135 - name: Build
107136 run: bun run build
108
109 - name: Publish Commit
110 run: bunx pkg-pr-new publish