Merge pull request #2 from orbeji/symfony_6_4 #45
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
| on: [push] | |
| name: Static analysis | |
| jobs: | |
| phpstan: | |
| name: PHPStan | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: 8.3 | |
| coverage: none | |
| tools: phpstan:1.10.55, cs2pr | |
| - name: Download dependencies | |
| uses: ramsey/composer-install@v2 | |
| - name: PHPStan | |
| run: phpstan analyze src/ --level=9 --no-progress --error-format=checkstyle | cs2pr | |
| phpcs: | |
| name: PhpCS | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: 8.3 | |
| coverage: none | |
| - name: Composer install | |
| uses: php-actions/composer@v6 | |
| with: | |
| php_version: 8.3 | |
| - name: PHP Code Sniffer | |
| uses: php-actions/phpcs@v1 | |
| with: | |
| php_version: 8.3 | |
| path: src/ | |
| standard: psr12 |