chore: upgrade PHP to 8.1, add spiral/code-style, config and CI for code style, update psalm #37
Workflow file for this run
This file contains hidden or 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-CS-Fixer Check | |
| on: [push, pull_request] | |
| jobs: | |
| phpcsfixer: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: '8.1' | |
| - name: Install dependencies | |
| run: composer install --no-progress --no-suggest --prefer-dist | |
| - name: Run PHP-CS-Fixer dry run | |
| run: | | |
| vendor/bin/php-cs-fixer fix --dry-run -v --diff |