Skip to content

Update friendsofphp/php-cs-fixer requirement from 3.59.3 to 3.64.0 #265

Update friendsofphp/php-cs-fixer requirement from 3.59.3 to 3.64.0

Update friendsofphp/php-cs-fixer requirement from 3.59.3 to 3.64.0 #265

Workflow file for this run

name: Linting
on: [push]
jobs:
php-cs-fixer:
name: PHP-CS-Fixer
runs-on: ubuntu-latest
strategy:
matrix:
php-version: [ 8.2, 8.3 ]
steps:
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
- name: Check out code
uses: actions/checkout@v4
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v4
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- name: Install dependencies
run: 'composer install --prefer-dist --no-ansi --no-interaction --no-progress --optimize-autoloader'
- name: Run PHP CS Fixer
run: './vendor/bin/php-cs-fixer check'
phpstan:
name: PHPStan
runs-on: ubuntu-latest
strategy:
matrix:
php-version: [ 8.2, 8.3 ]
composer-strategy: [ lowest, stable ]
steps:
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
- name: Check out code
uses: actions/checkout@v4
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v4
with:
path: vendor
key: ${{ runner.os }}-php-strategy-${{ matrix.composer-strategy }}-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-strategy-${{ matrix.composer-strategy }}-
- name: Install dependencies
run: 'composer update -W --prefer-${{ matrix.composer-strategy }} --no-ansi --no-interaction --no-progress --optimize-autoloader'
- name: Run PHPStan
run: './vendor/bin/phpstan analyse --memory-limit=1G'
psalm:
name: Psalm
runs-on: ubuntu-latest
strategy:
matrix:
php-version: [ 8.2, 8.3 ]
composer-strategy: [ lowest, stable ]
steps:
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
- name: Check out code
uses: actions/checkout@v4
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v4
with:
path: vendor
key: ${{ runner.os }}-php-strategy-${{ matrix.composer-strategy }}-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-strategy-${{ matrix.composer-strategy }}-
- name: Install dependencies
run: 'composer update -W --prefer-${{ matrix.composer-strategy }} --no-ansi --no-interaction --no-progress --optimize-autoloader'
- name: Run Psalm
run: './vendor/bin/psalm --show-info=false'
prettier:
name: Prettier
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v1
- name: Install dependencies
run: bun install
- name: Run Prettier
run: './node_modules/.bin/prettier --check "src/**/*.{js,scss,yaml,yml,json,md,ts}"'