Skip to content

Add support for Filament v4 and v5 #87

Add support for Filament v4 and v5

Add support for Filament v4 and v5 #87

Workflow file for this run

name: run-tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
include:
- php: 8.1
laravel: 10.*
filament: 4.*
testbench: 8.*
- php: 8.2
laravel: 11.*
filament: 4.*
testbench: 9.*
- php: 8.2
laravel: 12.*
filament: 5.*
testbench: 10.*
- php: 8.3
laravel: 12.*
filament: 5.*
testbench: 10.*
- php: 8.4
laravel: 12.*
filament: 5.*
testbench: 10.*
- php: 8.5
laravel: 12.*
filament: 5.*
testbench: 10.*
name: P${{ matrix.php }} - L${{ matrix.laravel }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Validate composer.json and composer.lock
run: composer validate --strict
- name: Cache Composer dependencies
uses: actions/cache@v4
with:
path: vendor
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
coverage: none
- name: Setup problem matchers
run: |
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "filament/filament:${{ matrix.filament }}" --no-interaction --no-update --no-progress --ansi
composer update --prefer-stable --prefer-dist --no-interaction --no-progress --ansi
- name: Execute tests
run: vendor/bin/pest