Code Analysis #226
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: Code Analysis | |
| on: | |
| pull_request: null | |
| push: | |
| branches: | |
| - main | |
| schedule: | |
| - cron: '0 6 * * *' | |
| jobs: | |
| code_analysis: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| php-version: | |
| - "7.4" | |
| actions: | |
| - name: 'Composer Validate' | |
| run: composer validate | |
| - name: 'PHPArkitect' | |
| run: composer arkitect | |
| - name: 'PHP Compatibility' | |
| run: composer php-compatibility | |
| - name: 'PHPStan' | |
| run: composer phpstan | |
| - name: 'ECS' | |
| run: composer cs:check | |
| - name: 'Rector' | |
| run: composer rector:check | |
| name: "${{ matrix.actions.name }} @ PHP${{ matrix.php-version }}" | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: "${{ matrix.php-version }}" | |
| coverage: none | |
| - uses: ramsey/composer-install@v2 | |
| - run: "${{ matrix.actions.run }}" |