mirror of
https://github.com/filamentphp/filament.git
synced 2026-09-01 15:09:33 +08:00
e5c1be713d
* chore: Introduce Pest browser testing for the framework * cs * fix tests * fix * Update tags-input.blade.php
58 lines
1.9 KiB
YAML
58 lines
1.9 KiB
YAML
name: phpstan
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
phpstan:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
php: [8.5, 8.4, 8.3, 8.2]
|
|
laravel: [12.*, 11.*]
|
|
dependency-version: [prefer-stable]
|
|
include:
|
|
- laravel: 12.*
|
|
testbench: 10.*
|
|
- laravel: 11.*
|
|
testbench: 9.*
|
|
- php: 8.5
|
|
pest: ^4.0
|
|
pest-plugin-laravel: ^4.0
|
|
- php: 8.4
|
|
pest: ^4.0
|
|
pest-plugin-laravel: ^4.0
|
|
- php: 8.3
|
|
pest: ^4.0
|
|
pest-plugin-laravel: ^4.0
|
|
- php: 8.2
|
|
pest: ^3.7
|
|
pest-plugin-laravel: ^3.0
|
|
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Cache dependencies
|
|
uses: actions/cache@v3
|
|
with:
|
|
path: ~/.composer/cache/files
|
|
key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
|
|
- name: Set up PHP
|
|
uses: shivammathur/setup-php@v2
|
|
with:
|
|
php-version: ${{ matrix.php }}
|
|
extensions: mbstring, pdo, pdo_sqlite
|
|
coverage: none
|
|
- name: Install dependencies
|
|
run: |
|
|
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "pestphp/pest:${{ matrix.pest }}" "pestphp/pest-plugin-laravel:${{ matrix.pest-plugin-laravel }}" --no-interaction --no-update
|
|
if [ "${{ matrix.php }}" = "8.2" ]; then composer remove pestphp/pest-plugin-browser --dev --no-interaction --no-update; fi
|
|
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
|
|
- name: Run PHPStan
|
|
run: ./vendor/bin/phpstan
|