Skip to content

Commit a1a426e

Browse files
authored
Merge pull request #146 from intentui/actions
Actions
2 parents 9ea5b20 + 07b5208 commit a1a426e

File tree

6 files changed

+1358
-5594
lines changed

6 files changed

+1358
-5594
lines changed

.github/workflows/lint.yml

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,33 @@ jobs:
2626
with:
2727
php-version: '8.4'
2828

29+
- name: Setup Bun
30+
uses: oven-sh/setup-bun@v1
31+
with:
32+
bun-version: '1.1.30'
33+
34+
- name: Cache Bun Dependencies
35+
uses: actions/cache@v4
36+
with:
37+
path: ~/.cache/bun
38+
key: bun-cache-${{ hashFiles('bun.lock') }}
39+
restore-keys: |
40+
bun-cache-
41+
2942
- name: Install Dependencies
30-
run: |
31-
composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
32-
npm install
43+
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
44+
45+
- name: Install Frontend Dependencies
46+
run: bun install --frozen-lockfile
3347

3448
- name: Run Pint
3549
run: vendor/bin/pint
3650

3751
- name: Format Frontend
38-
run: npm run format
52+
run: bun run format
3953

4054
- name: Lint Frontend
41-
run: npm run lint
55+
run: bun run lint
4256

4357
# - name: Commit Changes
4458
# uses: stefanzweifel/git-auto-commit-action@v5

.github/workflows/tests.yml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,21 @@ jobs:
2727
tools: composer:v2
2828
coverage: xdebug
2929

30-
- name: Setup Node
31-
uses: actions/setup-node@v4
30+
- name: Setup Bun
31+
uses: oven-sh/setup-bun@v1
3232
with:
33-
node-version: '22'
34-
cache: 'npm'
33+
bun-version: '1.1.30'
3534

36-
- name: Install Node Dependencies
37-
run: npm ci
35+
- name: Cache Bun Dependencies
36+
uses: actions/cache@v4
37+
with:
38+
path: ~/.cache/bun
39+
key: bun-cache-${{ hashFiles('bun.lock') }}
40+
restore-keys: |
41+
bun-cache-
42+
43+
- name: Install Frontend Dependencies
44+
run: bun install --frozen-lockfile
3845

3946
- name: Install Dependencies
4047
run: composer install --no-interaction --prefer-dist --optimize-autoloader
@@ -43,7 +50,7 @@ jobs:
4350
run: php artisan ziggy:generate
4451

4552
- name: Build Assets
46-
run: npm run build
53+
run: bun run build
4754

4855
- name: Copy Environment File
4956
run: cp .env.example .env

AGENTS.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ This application is a Laravel application and its main Laravel ecosystems packag
3636
- Do not change the application's dependencies without approval.
3737

3838
## Frontend Bundling
39-
- If the user doesn't see a frontend change reflected in the UI, it could mean they need to run `npm run build`, `npm run dev`, or `composer run dev`. Ask them.
39+
- If the user doesn't see a frontend change reflected in the UI, it could mean they need to run `bun run build`, `bun run dev`, or `composer run dev`. Ask them.
4040

4141
## Replies
4242
- Be concise in your explanations - focus on what's important rather than explaining obvious details.
@@ -135,13 +135,13 @@ protected function isAccessible(User $user, ?string $path = null): bool
135135
## Inertia Core
136136

137137
- Inertia.js components should be placed in the `resources/js/Pages` directory unless specified differently in the JS bundler (vite.config.js).
138-
- Use `inertia()` for server-side routing instead of traditional Blade views.
138+
- Use `Inertia::render()` for server-side routing instead of traditional Blade views.
139139
- Use `search-docs` for accurate guidance on all things Inertia.
140140

141-
<code-snippet lang="php" name="inertia Example">
141+
<code-snippet lang="php" name="Inertia::render Example">
142142
// routes/web.php example
143143
Route::get('/users', function () {
144-
return inertia('users/index', [
144+
return Inertia::render('Users/Index', [
145145
'users' => User::all()
146146
]);
147147
});
@@ -213,7 +213,7 @@ Route::get('/users', function () {
213213
- When creating tests, make use of `php artisan make:test [options] {name}` to create a feature test, and pass `--unit` to create a unit test. Most tests should be feature tests.
214214

215215
### Vite Error
216-
- If you receive an "Illuminate\Foundation\ViteException: Unable to locate file in Vite manifest" error, you can run `npm run build` or ask the user to run `npm run dev` or `composer run dev`.
216+
- If you receive an "Illuminate\Foundation\ViteException: Unable to locate file in Vite manifest" error, you can run `bun run build` or ask the user to run `bun run dev` or `composer run dev`.
217217

218218

219219
=== laravel/v12 rules ===

0 commit comments

Comments
 (0)