Skip to content

Merge pull request #3084 from stof/clean_docs #193

Merge pull request #3084 from stof/clean_docs

Merge pull request #3084 from stof/clean_docs #193

name: Code style and composer validate
on:
pull_request:
push:
branches: [ master, 2.x, 3.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