Skip to content

Commit 4dd926b

Browse files
chore: Set minimum php version to 8.1
1 parent 605ba8d commit 4dd926b

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

.github/workflows/ci.yaml

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

108
jobs:
@@ -17,7 +15,7 @@ jobs:
1715
- uses: actions/checkout@v4
1816
- uses: shivammathur/setup-php@v2
1917
with:
20-
php-version: 8.2
18+
php-version: 8.4
2119
- run: composer install --prefer-dist --no-progress
2220
- name: Run ecs check
2321
run: |
@@ -31,36 +29,44 @@ jobs:
3129
- uses: actions/checkout@v4
3230
- uses: shivammathur/setup-php@v2
3331
with:
34-
php-version: 8.2
32+
php-version: 8.4
3533
- run: composer install --prefer-dist --no-progress
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:
4345
DEFAULT_COMPOSER_FLAGS: "--no-interaction --no-ansi --no-progress"
4446
steps:
4547
- uses: actions/checkout@v4
4648
- uses: shivammathur/setup-php@v2
4749
with:
48-
php-version: 8.2
50+
php-version: ${{ matrix.php }}
4951
- run: composer install --prefer-dist --no-progress
5052
- name: Run phpstan
5153
run: |
5254
vendor/bin/phpstan --memory-limit=1G
5355
pest:
5456
name: Pest
5557
runs-on: ubuntu-latest
58+
strategy:
59+
fail-fast: false
60+
matrix:
61+
php: [8.1, 8.2, 8.3, 8.4]
5662
env:
5763
DEFAULT_COMPOSER_FLAGS: "--no-interaction --no-ansi --no-progress"
5864
steps:
5965
- uses: actions/checkout@v4
6066
- uses: shivammathur/setup-php@v2
6167
with:
62-
php-version: 8.2
68+
php-version: ${{ matrix.php }}
6369
- run: composer install --prefer-dist --no-progress
6470
- name: Run pest
6571
run: |
66-
vendor/bin/pest
72+
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)