Merge pull request #187 from darkwebdesign/issue-183-7.3 #62
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: 'Build' | |
| on: | |
| push: | |
| branches: | |
| - 'main' | |
| - '[0-9].[0-9]' | |
| pull_request: | |
| concurrency: | |
| group: "${{ github.workflow }}-${{ github.head_ref || github.run_id }}" | |
| cancel-in-progress: true | |
| jobs: | |
| php-cs-fixer: | |
| name: 'Run PHP CS Fixer' | |
| runs-on: 'ubuntu-24.04' | |
| steps: | |
| - uses: 'actions/checkout@v4' | |
| - uses: 'shivammathur/setup-php@v2' | |
| with: | |
| php-version: '8.2' | |
| - run: 'composer require --no-install darkwebdesign/symfony-addon-pack:7.2.x-dev' | |
| - uses: 'ramsey/composer-install@v3' | |
| - run: 'vendor/bin/php-cs-fixer fix --diff --dry-run --show-progress=none --ansi' | |
| phpstan: | |
| name: 'Run PHPStan' | |
| runs-on: 'ubuntu-24.04' | |
| steps: | |
| - uses: 'actions/checkout@v4' | |
| - uses: 'shivammathur/setup-php@v2' | |
| with: | |
| php-version: '8.2' | |
| - run: 'composer require --no-install darkwebdesign/symfony-addon-pack:7.2.x-dev' | |
| - uses: 'ramsey/composer-install@v3' | |
| - run: 'vendor/bin/phpstan analyze --no-progress --ansi' | |
| rector: | |
| name: 'Run Rector' | |
| runs-on: 'ubuntu-24.04' | |
| steps: | |
| - uses: 'actions/checkout@v4' | |
| - uses: 'shivammathur/setup-php@v2' | |
| with: | |
| php-version: '8.2' | |
| - run: 'composer require --no-install darkwebdesign/symfony-addon-pack:7.2.x-dev' | |
| - uses: 'ramsey/composer-install@v3' | |
| - run: 'vendor/bin/rector process --dry-run --no-progress-bar --ansi' | |
| composer-validate: | |
| name: 'Run Composer Validate' | |
| runs-on: 'ubuntu-24.04' | |
| steps: | |
| - uses: 'actions/checkout@v4' | |
| - uses: 'shivammathur/setup-php@v2' | |
| with: | |
| php-version: '8.2' | |
| - run: 'composer validate' | |
| composer-install: | |
| name: 'Run Composer Install' | |
| runs-on: 'ubuntu-24.04' | |
| strategy: | |
| matrix: | |
| php: ['8.2', '8.3', '8.4'] | |
| fail-fast: false | |
| steps: | |
| - uses: 'actions/checkout@v4' | |
| - uses: 'shivammathur/setup-php@v2' | |
| with: | |
| php-version: "${{ matrix.php }}" | |
| - run: 'composer require --no-install darkwebdesign/symfony-addon-pack:7.2.x-dev' | |
| - uses: 'ramsey/composer-install@v3' |