Fix phpstan github ci workflow #125
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: Check & fix styling | |
on: [push] | |
jobs: | |
php-cs-fixer: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 8.3 | |
coverage: none | |
tools: php-cs-fixer:3.54.x, cs2pr | |
- name: Restore PHP-CS-Fixer cache | |
uses: actions/cache@v4 | |
with: | |
path: .php_cs.cache | |
key: "php-cs-fixer" | |
restore-keys: "php-cs-fixer" | |
- name: Run PHP-CS-Fixer with output for CI debugging | |
run: php-cs-fixer fix -vv --dry-run --allow-risky=yes | |
- name: Run PHP-CS-Fixer with automatic pull request comments | |
run: php-cs-fixer fix --dry-run --format=checkstyle --allow-risky=yes | cs2pr |