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/buddy-bot.ymlmodified+6-6
Changes to .github/workflows/buddy-bot.yml
@@ -126,11 +126,11 @@ jobs:
126126 persist-credentials: true
127127
128128 - name: Setup Bun
129 uses: oven-sh/setup-bun@v2
129 uses: oven-sh/setup-bun@v2.0.2
130130
131131 - name: Setup PHP and Composer (if needed)
132132 if: ${{ hashFiles('composer.json') != '' }}
133 uses: shivammathur/setup-php@v2
133 uses: shivammathur/setup-php@2.35.4
134134 with:
135135 php-version: '8.4'
136136 tools: composer
@@ -163,7 +163,7 @@ jobs:
163163 persist-credentials: true
164164
165165 - name: Setup Bun
166 uses: oven-sh/setup-bun@v2
166 uses: oven-sh/setup-bun@v2.0.2
167167
168168 - name: Install dependencies
169169 run: bun install
@@ -244,11 +244,11 @@ jobs:
244244 persist-credentials: true
245245
246246 - name: Setup Bun
247 uses: oven-sh/setup-bun@v2
247 uses: oven-sh/setup-bun@v2.0.2
248248
249249 - name: Setup PHP and Composer (if needed)
250250 if: ${{ hashFiles('composer.json') != '' }}
251 uses: shivammathur/setup-php@v2
251 uses: shivammathur/setup-php@2.35.4
252252 with:
253253 php-version: '8.4'
254254 tools: composer
@@ -351,7 +351,7 @@ jobs:
351351 token: ${{ secrets.GITHUB_TOKEN }}
352352
353353 - name: Setup Bun
354 uses: oven-sh/setup-bun@v2
354 uses: oven-sh/setup-bun@v2.0.2
355355
356356 - name: Install dependencies
357357 run: bun install
.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
.github/workflows/release.ymlmodified+1-1
Changes to .github/workflows/release.yml
@@ -19,7 +19,7 @@ jobs:
1919 uses: oven-sh/setup-bun@v2
2020
2121 - name: Use cached node_modules
22 uses: actions/cache@v4
22 uses: actions/cache@v4.2.4
2323 with:
2424 path: node_modules
2525 key: node-modules-${{ hashFiles('**/bun.lock') }}
package.jsonmodified+9-6
Changes to package.json
@@ -61,14 +61,17 @@
6161 "preview:docs": "bun --bun vitepress preview docs",
6262 "typecheck": "bun --bun tsc --noEmit"
6363 },
64 "dependencies": {
65 "@stacksjs/launchpad": "^0.6.4"
66 },
6467 "devDependencies": {
65 "@stacksjs/bumpx": "^0.1.13",
68 "@stacksjs/bumpx": "^0.1.61",
6669 "@stacksjs/docs": "^0.70.23",
6770 "@stacksjs/eslint-config": "^4.14.0-beta.3",
6871 "@stacksjs/gitlint": "^0.1.5",
69 "@stacksjs/logsmith": "^0.1.8",
70 "@types/bun": "^1.2.20",
71 "buddy-bot": "^0.8.8",
72 "@stacksjs/logsmith": "^0.1.15",
73 "@types/bun": "^1.2.21",
74 "buddy-bot": "^0.8.10",
7275 "bun-git-hooks": "^0.2.19",
7376 "bun-plugin-dtsx": "0.9.5",
7477 "bunfig": "^0.14.1",
@@ -80,9 +83,9 @@
8083 "git-hooks": {
8184 "pre-commit": {
8285 "staged-lint": {
83 "*.{js,ts,json,yaml,yml,md}": "bun lint:fix"
86 "*.{js,ts,json,yaml,yml,md}": "bunx --bun eslint --fix"
8487 }
8588 },
86 "commit-msg": "bunx gitlint --edit $1"
89 "commit-msg": "bunx gitlint --edit .git/COMMIT_EDITMSG"
8790 }
8891}