mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-12-06 17:52:16 +00:00
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:
committed by
Constantin Graf
parent
1b6ca3e00f
commit
bd851e4edf
14
.github/workflows/pint.yml
vendored
14
.github/workflows/pint.yml
vendored
@@ -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
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user