chore(.github): Update GitHub Actions workflows to use Bun instead of Node.js

This commit is contained in:
Víctor Falcón 2025-11-26 12:01:48 +01:00
parent 981df8cd68
commit eadd939aa9
2 changed files with 10 additions and 10 deletions

View File

@ -24,19 +24,22 @@ jobs:
with:
php-version: '8.4'
- name: Setup Bun
uses: oven-sh/setup-bun@v2
- name: Install Dependencies
run: |
composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
npm install
bun install --frozen-lockfile
- name: Run Pint
run: vendor/bin/pint
- name: Format Frontend
run: npm run format
run: bun run format
- name: Lint Frontend
run: npm run lint
run: bun run lint
# - name: Commit Changes
# uses: stefanzweifel/git-auto-commit-action@v5

View File

@ -25,20 +25,17 @@ jobs:
tools: composer:v2
coverage: xdebug
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'npm'
- name: Setup Bun
uses: oven-sh/setup-bun@v2
- name: Install Node Dependencies
run: npm ci
run: bun install --frozen-lockfile
- name: Install Dependencies
run: composer install --no-interaction --prefer-dist --optimize-autoloader
- name: Build Assets
run: npm run build
run: bun run build
- name: Copy Environment File
run: cp .env.example .env