Skip to content

Commit 38d2be3

Browse files
chore: Set minimum php version to 8.1
1 parent 605ba8d commit 38d2be3

File tree

2 files changed

+17
-14
lines changed

2 files changed

+17
-14
lines changed

.github/workflows/ci.yaml

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,50 +3,53 @@ name: CI
33
on:
44
workflow_dispatch:
55
push:
6-
branches:
7-
- main
86
pull_request:
97

108
jobs:
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"
46+
COMPOSER_IGNORE_PLATFORM_REQS: 1
4447
steps:
4548
- uses: actions/checkout@v4
4649
- uses: shivammathur/setup-php@v2
4750
with:
48-
php-version: 8.2
49-
- run: composer install --prefer-dist --no-progress
51+
php-version: ${{ matrix.php }}
52+
- run: composer install
5053
- name: Run phpstan
5154
run: |
5255
vendor/bin/phpstan --memory-limit=1G
@@ -59,8 +62,8 @@ jobs:
5962
- uses: actions/checkout@v4
6063
- uses: shivammathur/setup-php@v2
6164
with:
62-
php-version: 8.2
65+
php-version: 8.4
6366
- run: composer install --prefer-dist --no-progress
6467
- name: Run pest
6568
run: |
66-
vendor/bin/pest
69+
vendor/bin/pest

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"docs": "https://github.com/smallpics/smallpics-php/blob/main/README.md"
1919
},
2020
"require": {
21-
"php": ">=8.2.0"
21+
"php": ">=8.1.0"
2222
},
2323
"require-dev": {
2424
"fostercommerce/ecs": "dev-main",

0 commit comments

Comments
 (0)