Skip to content

Merge pull request #3074 from stof/improve_types #168

Merge pull request #3074 from stof/improve_types

Merge pull request #3074 from stof/improve_types #168

name: Code style and composer validate
on:
pull_request:
push:
branches: [ master, 2.x ]
jobs:
composer-validate:
name: Validate composer.json
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Validate
run: composer validate --no-check-lock --strict
php-cs-fixer:
name: PHP-CS-Fixer
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
- name: Install dependencies
run: composer install
- name: Run script
run: vendor/bin/php-cs-fixer fix --verbose --diff --dry-run