CS fix #134
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@v2 | |
- name: Setup tools | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 8.1 | |
tools: cs2pr | |
coverage: none | |
- name: Install Composer dependencies | |
uses: ramsey/composer-install@v2 | |
- name: Create var/ directory | |
run: mkdir var | |
- name: Cache PHP Coding Standards | |
uses: actions/cache@v2 | |
with: | |
path: var/.php_cs.cache | |
key: php-cs-fixer-${{ github.sha }} | |
restore-keys: php-cs-fixer- | |
- name: Run PHP Coding Standards | |
run: vendor/bin/php-cs-fixer fix --dry-run --format=checkstyle | cs2pr |