@@ -137,13 +137,13 @@ jobs:
137
137
tools : composer
138
138
coverage : none
139
139
140
- - name : Install dependencies
141
- run : bun install
142
-
143
140
- name : Install Composer dependencies (if needed)
144
141
if : ${{ hashFiles('composer.json') != '' }}
145
142
run : composer install --prefer-dist --optimize-autoloader
146
143
144
+ - name : Install dependencies
145
+ run : bun install
146
+
147
147
- name : Configure Git
148
148
run : |
149
149
git config --global user.name "github-actions[bot]"
@@ -164,22 +164,21 @@ jobs:
164
164
if : ${{ needs.determine-jobs.outputs.run_check == 'true' }}
165
165
166
166
steps :
167
- - name : Restore workspace
168
- uses : actions/cache/restore@v4
169
- with :
170
- path : |
171
- .
172
- !.git
173
- key : buddy-bot-workspace-${{ github.sha }}
174
- fail-on-cache-miss : true
175
-
176
167
- name : Checkout repository
177
168
uses : actions/checkout@v4
178
169
with :
179
170
token : ${{ secrets.BUDDY_BOT_TOKEN || secrets.GITHUB_TOKEN }}
180
171
fetch-depth : 0
181
172
persist-credentials : true
182
173
174
+ - name : Setup Bun
175
+ uses : oven-sh/setup-bun@v2
176
+ with :
177
+ bun-version : latest
178
+
179
+ - name : Install dependencies
180
+ run : bun install
181
+
183
182
- name : Configure Git
184
183
run : |
185
184
git config --global user.name "github-actions[bot]"
@@ -202,7 +201,7 @@ jobs:
202
201
echo "🔍 Checking for PRs with rebase checkbox enabled..."
203
202
echo "🔧 Environment info:"
204
203
echo "Current directory: $(pwd)"
205
- echo "GITHUB_TOKEN set: $([[ -n \ "$GITHUB_TOKEN\ " ]] && echo \ "Yes\ " || echo \ "No\ ")"
204
+ echo "GITHUB_TOKEN set: $([[ -n "$GITHUB_TOKEN" ]] && echo "Yes" || echo "No")"
206
205
echo "Repository: ${{ github.repository }}"
207
206
echo "Event: ${{ github.event_name }}"
208
207
echo ""
@@ -247,22 +246,33 @@ jobs:
247
246
if : ${{ needs.determine-jobs.outputs.run_update == 'true' }}
248
247
249
248
steps :
250
- - name : Restore workspace
251
- uses : actions/cache/restore@v4
252
- with :
253
- path : |
254
- .
255
- !.git
256
- key : buddy-bot-workspace-${{ github.sha }}
257
- fail-on-cache-miss : true
258
-
259
249
- name : Checkout repository
260
250
uses : actions/checkout@v4
261
251
with :
262
252
token : ${{ secrets.BUDDY_BOT_TOKEN || secrets.GITHUB_TOKEN }}
263
253
fetch-depth : 0
264
254
persist-credentials : true
265
255
256
+ - name : Setup Bun
257
+ uses : oven-sh/setup-bun@v2
258
+ with :
259
+ bun-version : latest
260
+
261
+ - name : Setup PHP and Composer (if needed)
262
+ if : ${{ hashFiles('composer.json') != '' }}
263
+ uses : shivammathur/setup-php@v2
264
+ with :
265
+ php-version : ' 8.4'
266
+ tools : composer
267
+ coverage : none
268
+
269
+ - name : Install Composer dependencies (if needed)
270
+ if : ${{ hashFiles('composer.json') != '' }}
271
+ run : composer install --prefer-dist --optimize-autoloader
272
+
273
+ - name : Install dependencies
274
+ run : bun install
275
+
266
276
- name : Configure Git
267
277
run : |
268
278
git config --global user.name "github-actions[bot]"
@@ -377,20 +387,19 @@ jobs:
377
387
if : ${{ needs.determine-jobs.outputs.run_dashboard == 'true' && always() }}
378
388
379
389
steps :
380
- - name : Restore workspace
381
- uses : actions/cache/restore@v4
382
- with :
383
- path : |
384
- .
385
- !.git
386
- key : buddy-bot-workspace-${{ github.sha }}
387
- fail-on-cache-miss : true
388
-
389
390
- name : Checkout repository
390
391
uses : actions/checkout@v4
391
392
with :
392
393
token : ${{ secrets.BUDDY_BOT_TOKEN || secrets.GITHUB_TOKEN }}
393
394
395
+ - name : Setup Bun
396
+ uses : oven-sh/setup-bun@v2
397
+ with :
398
+ bun-version : latest
399
+
400
+ - name : Install dependencies
401
+ run : bun install
402
+
394
403
- name : Display dashboard configuration
395
404
run : |
396
405
echo "📊 **Buddy Bot Dashboard Management**"
0 commit comments