feat: add builder #574
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: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| name: PHP Analysis | |
| jobs: | |
| analyze: | |
| name: 🔍 Analyze | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| php: [ 8.1, 8.2, 8.3, 8.4 ] | |
| env: | |
| PHP_CS_FIXER_IGNORE_ENV: 1 # Remove when PHP 8.4 is officially supported by PHP CS Fixer | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php }} | |
| - name: Remove roave/backward-compatibility-check for PHP 8.1 | |
| if: matrix.php == '8.1' | |
| run: composer remove --dev roave/backward-compatibility-check || true | |
| - name: Install dependencies | |
| run: composer install --prefer-dist --no-progress | |
| - name: Run PHPStan | |
| run: composer phpstan | |
| - name: Run PHP-CS-Fixer | |
| run: composer cs | |
| bc_check: | |
| name: 🕵🏼 Check Backwards Compatibility | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 | |
| - uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: 8.2 | |
| - name: Install dependencies | |
| run: composer install --prefer-dist --no-progress | |
| - name: Run BC Check | |
| run: vendor/bin/roave-backward-compatibility-check |