@@ -3,50 +3,52 @@ name: CI
33on :
44 workflow_dispatch :
55 push :
6- branches :
7- - main
86 pull_request :
97
108jobs :
119 ecs :
1210 name : ECS Check
1311 runs-on : ubuntu-latest
1412 env :
15- DEFAULT_COMPOSER_FLAGS : " --no-interaction --no-ansi --no-progress"
13+ DEFAULT_COMPOSER_FLAGS : " --prefer-dist --no-interaction --no-ansi --no-progress"
1614 steps :
1715 - uses : actions/checkout@v4
1816 - uses : shivammathur/setup-php@v2
1917 with :
20- php-version : 8.2
21- - run : composer install --prefer-dist --no-progress
18+ php-version : 8.4
19+ - run : composer install --prefer-dist --no-progress --ignore-platform-reqs
2220 - name : Run ecs check
2321 run : |
2422 vendor/bin/ecs --memory-limit=1G --no-progress-bar
2523 rector :
2624 name : Rector dry-run
2725 runs-on : ubuntu-latest
2826 env :
29- DEFAULT_COMPOSER_FLAGS : " --no-interaction --no-ansi --no-progress"
27+ DEFAULT_COMPOSER_FLAGS : " --prefer-dist --no-interaction --no-ansi --no-progress"
3028 steps :
3129 - uses : actions/checkout@v4
3230 - uses : shivammathur/setup-php@v2
3331 with :
34- php-version : 8.2
35- - run : composer install --prefer-dist --no-progress
32+ php-version : 8.4
33+ - run : composer install
3634 - name : Run rector --dry-run
3735 run : |
3836 vendor/bin/rector --memory-limit=1G --no-progress-bar --dry-run
3937 phpstan :
4038 name : PHPStan
4139 runs-on : ubuntu-latest
40+ strategy :
41+ fail-fast : false
42+ matrix :
43+ php : [8.1, 8.2, 8.3, 8.4]
4244 env :
43- DEFAULT_COMPOSER_FLAGS : " -- no-interaction --no-ansi --no-progress"
45+ DEFAULT_COMPOSER_FLAGS : " --prefer-dist -- no-interaction --no-ansi --no-progress --ignore-platform-reqs "
4446 steps :
4547 - uses : actions/checkout@v4
4648 - uses : shivammathur/setup-php@v2
4749 with :
48- php-version : 8.2
49- - run : composer install --prefer-dist --no-progress
50+ php-version : ${{ matrix.php }}
51+ - run : composer install
5052 - name : Run phpstan
5153 run : |
5254 vendor/bin/phpstan --memory-limit=1G
5961 - uses : actions/checkout@v4
6062 - uses : shivammathur/setup-php@v2
6163 with :
62- php-version : 8.2
64+ php-version : 8.4
6365 - run : composer install --prefer-dist --no-progress
6466 - name : Run pest
6567 run : |
66- vendor/bin/pest
68+ vendor/bin/pest
0 commit comments