style: apply changes from ECS #188
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: Code Analysis | |
on: | |
push: | |
jobs: | |
code_analysis_composer: | |
timeout-minutes: 30 | |
name: '${{ matrix.actions.name }} on PHP ${{ matrix.php }}' | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
php: [ '8.2', '8.3' ] | |
actions: | |
- name: ECS | |
run: "composer ecs" | |
- name: PHPStan | |
run: "composer phpstan" | |
- name: Rector | |
run: "composer rector" | |
- name: Composer validate | |
run: "composer validate" | |
env: | |
APP_NAME: "Worksome CI" | |
APP_ENV: testing | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
coverage: none | |
php-version: ${{ matrix.php }} | |
tools: cs2pr | |
- name: Install Composer dependencies | |
uses: ramsey/composer-install@v3 | |
- run: ${{ matrix.actions.run }} |