chore: Set minimum php version to 8.1 #20
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: CI | |
| on: | |
| workflow_dispatch: | |
| push: | |
| pull_request: | |
| jobs: | |
| ecs: | |
| name: ECS Check | |
| runs-on: ubuntu-latest | |
| env: | |
| DEFAULT_COMPOSER_FLAGS: " --prefer-dist --no-interaction --no-ansi --no-progress" | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: 8.4 | |
| - run: composer install --prefer-dist --no-progress --ignore-platform-reqs | |
| - name: Run ecs check | |
| run: | | |
| vendor/bin/ecs --memory-limit=1G --no-progress-bar | |
| rector: | |
| name: Rector dry-run | |
| runs-on: ubuntu-latest | |
| env: | |
| DEFAULT_COMPOSER_FLAGS: " --prefer-dist --no-interaction --no-ansi --no-progress" | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: 8.4 | |
| - run: composer install | |
| - name: Run rector --dry-run | |
| run: | | |
| vendor/bin/rector --memory-limit=1G --no-progress-bar --dry-run | |
| phpstan: | |
| name: PHPStan | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| php: [8.1, 8.2, 8.3, 8.4] | |
| env: | |
| DEFAULT_COMPOSER_FLAGS: " --prefer-dist --no-interaction --no-ansi --no-progress --ignore-platform-reqs" | |
| COMPOSER_IGNORE_PLATFORM_REQS: 1 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php }} | |
| - run: composer install | |
| - name: Run phpstan | |
| run: | | |
| vendor/bin/phpstan --memory-limit=1G | |
| pest: | |
| name: Pest | |
| runs-on: ubuntu-latest | |
| env: | |
| DEFAULT_COMPOSER_FLAGS: "--no-interaction --no-ansi --no-progress" | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: 8.4 | |
| - run: composer install --prefer-dist --no-progress | |
| - name: Run pest | |
| run: | | |
| vendor/bin/pest |