Run the project's pint version in the linting workflow

The laravel-pint-action builds on composer:latest, whose current image lacks
mbstring and crashes pint. Run vendor/bin/pint after setting up PHP instead,
which also uses the pint version from composer.lock. Remove an unused import
that the newer pint version reports.
This commit is contained in:
Constantin Graf
2026-11-19 18:11:54 +01:00
committed by Constantin Graf
parent 1b6ca3e00f
commit bd851e4edf
2 changed files with 11 additions and 4 deletions

View File

@@ -11,7 +11,15 @@ jobs:
- name: "Checkout code"
uses: actions/checkout@v7
- name: "Check code style"
uses: aglipanci/laravel-pint-action@2.6
- name: "Setup PHP"
uses: shivammathur/setup-php@v2
with:
configPath: "pint.json"
php-version: '8.3'
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv
coverage: none
- name: "Run composer install"
run: composer install -n --prefer-dist
- name: "Check code style"
run: vendor/bin/pint --test --config pint.json

View File

@@ -5,7 +5,6 @@ declare(strict_types=1);
namespace App\Http\Middleware;
use Filament\Http\Middleware\Authenticate as Middleware;
use Illuminate\Http\Request;
class AuthenticateFilamentPanel extends Middleware
{