mirror of
https://github.com/HDInnovations/UNIT3D.git
synced 2026-01-31 01:35:31 +01:00
Needed to update nette/schema, laminas/laminas-diactoros and laravel/framework - they were the only packages that needed updating. Also needed to replace a pdo constant deprecated in php 8.5.
41 lines
1.6 KiB
YAML
41 lines
1.6 KiB
YAML
name: Compile Assets (Vite)
|
|
on: [ push, pull_request ]
|
|
jobs:
|
|
build-assets:
|
|
strategy:
|
|
matrix:
|
|
operating-system:
|
|
- ubuntu-22.04
|
|
php-version:
|
|
- '8.4'
|
|
- '8.5'
|
|
name: php ${{ matrix.php-version }} on ${{ matrix.operating-system }}
|
|
runs-on: ${{ matrix.operating-system }}
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v6
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Setup PHP
|
|
uses: shivammathur/setup-php@v2
|
|
with:
|
|
php-version: ${{ matrix.php-version }}
|
|
extensions: curl, dom, gd, libxml, mbstring, zip, mysql, xml, intl, bcmath, redis-phpredis/phpredis@6.0.1
|
|
ini-values: error_reporting=E_ALL
|
|
coverage: pcov
|
|
tools: composer:v2
|
|
env:
|
|
REDIS_CONFIGURE_OPTS: --enable-redis
|
|
- name: Configure Bun
|
|
uses: oven-sh/setup-bun@v2
|
|
with:
|
|
bun-version: latest
|
|
- name: Install Composer Dependencies
|
|
env:
|
|
COMPOSER_AUTH: ${{ secrets.COMPOSER_AUTH }}
|
|
run: composer install --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist --optimize-autoloader
|
|
- name: Install JS Dependencies
|
|
run: bun ci
|
|
- name: Compile Assets (Vite)
|
|
run: bun run build
|