chore(.github): Update GitHub Actions workflows to use Bun instead of Node.js
This commit is contained in:
parent
981df8cd68
commit
eadd939aa9
|
|
@ -24,19 +24,22 @@ jobs:
|
||||||
with:
|
with:
|
||||||
php-version: '8.4'
|
php-version: '8.4'
|
||||||
|
|
||||||
|
- name: Setup Bun
|
||||||
|
uses: oven-sh/setup-bun@v2
|
||||||
|
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
run: |
|
run: |
|
||||||
composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
|
composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
|
||||||
npm install
|
bun install --frozen-lockfile
|
||||||
|
|
||||||
- name: Run Pint
|
- name: Run Pint
|
||||||
run: vendor/bin/pint
|
run: vendor/bin/pint
|
||||||
|
|
||||||
- name: Format Frontend
|
- name: Format Frontend
|
||||||
run: npm run format
|
run: bun run format
|
||||||
|
|
||||||
- name: Lint Frontend
|
- name: Lint Frontend
|
||||||
run: npm run lint
|
run: bun run lint
|
||||||
|
|
||||||
# - name: Commit Changes
|
# - name: Commit Changes
|
||||||
# uses: stefanzweifel/git-auto-commit-action@v5
|
# uses: stefanzweifel/git-auto-commit-action@v5
|
||||||
|
|
|
||||||
|
|
@ -25,20 +25,17 @@ jobs:
|
||||||
tools: composer:v2
|
tools: composer:v2
|
||||||
coverage: xdebug
|
coverage: xdebug
|
||||||
|
|
||||||
- name: Setup Node
|
- name: Setup Bun
|
||||||
uses: actions/setup-node@v4
|
uses: oven-sh/setup-bun@v2
|
||||||
with:
|
|
||||||
node-version: '22'
|
|
||||||
cache: 'npm'
|
|
||||||
|
|
||||||
- name: Install Node Dependencies
|
- name: Install Node Dependencies
|
||||||
run: npm ci
|
run: bun install --frozen-lockfile
|
||||||
|
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
run: composer install --no-interaction --prefer-dist --optimize-autoloader
|
run: composer install --no-interaction --prefer-dist --optimize-autoloader
|
||||||
|
|
||||||
- name: Build Assets
|
- name: Build Assets
|
||||||
run: npm run build
|
run: bun run build
|
||||||
|
|
||||||
- name: Copy Environment File
|
- name: Copy Environment File
|
||||||
run: cp .env.example .env
|
run: cp .env.example .env
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue