Skip to content

PHP Coding Standards #152

PHP Coding Standards

PHP Coding Standards #152

Workflow file for this run

name: PHP Coding Standards
on:
push:
branches:
- main
pull_request:
schedule:
- cron: '20 16 * * SUN'
jobs:
php-cs-fixer:
name: PHP Coding Standards
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup tools
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
tools: cs2pr
coverage: none
- name: Install Composer dependencies
uses: ramsey/composer-install@v2
- name: Cache PHP Coding Standards
uses: actions/cache@v3
with:
path: var/.php_cs.cache
key: php-cs-fixer-${{ github.sha }}
- name: Run PHP Coding Standards
run: vendor/bin/php-cs-fixer fix --dry-run --format=checkstyle | cs2pr