fix: Use php 8.1 for CI #26
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: CI | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
ecs: | |
name: ECS Check | |
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.2 | |
- run: composer install --prefer-dist --no-progress | |
- 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: "--no-interaction --no-ansi --no-progress" | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 8.2 | |
- run: composer install --prefer-dist --no-progress | |
- name: Run rector --dry-run | |
run: | | |
vendor/bin/rector --memory-limit=1G --no-progress-bar --dry-run | |
phpstan: | |
name: PHPStan | |
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.2 | |
- run: composer install --prefer-dist --no-progress | |
- name: Run phpstan | |
run: | | |
vendor/bin/phpstan --memory-limit=1G |