Skip to content

Commit b275d3d

Browse files
committed
drop php 8.1 and 8.2 and enhance CI testing all supported symfony versions
1 parent c06eb1d commit b275d3d

File tree

10 files changed

+60
-56
lines changed

10 files changed

+60
-56
lines changed

.github/workflows/test-suite.yml

Lines changed: 26 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,26 @@ on:
1010

1111
jobs:
1212
tests:
13-
name: "Tests"
14-
runs-on: ${{ matrix.operating-system }}
13+
name: "Tests ${{ matrix.php-version }} ${{ matrix.dependencies }} (Symfony ${{ matrix.symfony-version }})"
14+
runs-on: "ubuntu-latest"
1515
strategy:
1616
matrix:
1717
dependencies:
18-
- "locked"
1918
- "lowest"
2019
- "highest"
2120
php-version:
22-
- "8.1"
23-
- "8.2"
2421
- "8.3"
2522
- "8.4"
2623
- "8.5"
27-
operating-system:
28-
- "ubuntu-latest"
24+
symfony-version:
25+
- "5.4.*"
26+
- "6.4.*"
27+
- "7.3.*"
28+
- "7.4.*"
29+
- "8.0.*"
30+
exclude:
31+
- php-version: 8.3
32+
symfony-version: "8.0.*"
2933

3034
steps:
3135
- name: "Checkout"
@@ -37,7 +41,7 @@ jobs:
3741
coverage: "pcov"
3842
php-version: "${{ matrix.php-version }}"
3943
ini-values: memory_limit=-1
40-
tools: composer:v2
44+
tools: flex, composer:v2
4145

4246
- name: "Get Composer Cache Directory"
4347
id: composer-cache
@@ -49,21 +53,21 @@ jobs:
4953
with:
5054
path: |
5155
${{ steps.composer-cache.outputs.dir }}
52-
key: "php-${{ matrix.php-version }}-${{ matrix.dependencies }}-composer-${{ hashFiles('**/composer.lock') }}"
56+
key: "php-${{ matrix.php-version }}-composer-${{ hashFiles('**/composer.json **/composer.lock') }}"
5357
restore-keys: |
54-
php-${{ matrix.php-version }}-${{ matrix.dependencies }}-composer-
58+
php-${{ matrix.php-version }}-composer-
5559
5660
- name: "Install lowest dependencies"
5761
if: ${{ matrix.dependencies == 'lowest' }}
5862
run: "composer update --prefer-lowest --no-interaction --no-progress --no-suggest"
63+
env:
64+
SYMFONY_REQUIRE: ${{ matrix.symfony-version }}
5965

6066
- name: "Install highest dependencies"
6167
if: ${{ matrix.dependencies == 'highest' }}
6268
run: "composer update --no-interaction --no-progress --no-suggest"
63-
64-
- name: "Install locked dependencies"
65-
if: ${{ matrix.dependencies == 'locked' }}
66-
run: "composer install --no-interaction --no-progress --no-suggest"
69+
env:
70+
SYMFONY_REQUIRE: ${{ matrix.symfony-version }}
6771

6872
- name: "Tests"
6973
run: "composer test"
@@ -79,7 +83,7 @@ jobs:
7983
uses: "shivammathur/setup-php@v2"
8084
with:
8185
coverage: none
82-
php-version: "8.1"
86+
php-version: "8.3"
8387
ini-values: memory_limit=-1
8488
tools: composer:v2
8589

@@ -93,11 +97,11 @@ jobs:
9397
with:
9498
path: |
9599
${{ steps.composer-cache.outputs.dir }}
96-
key: "php-8.1-locked-composer-${{ hashFiles('**/composer.lock') }}"
100+
key: "php-8.3-composer-${{ hashFiles('**/composer.json **/composer.lock') }}"
97101
restore-keys: |
98-
php-8.1-locked-composer-
102+
php-8.3-composer-
99103
100-
- name: "Install locked dependencies"
104+
- name: "Install dependencies"
101105
run: "composer install --no-interaction --no-progress --no-suggest"
102106

103107
- name: "Static Analyze"
@@ -115,7 +119,7 @@ jobs:
115119
with:
116120
coverage: "pcov"
117121
tools: composer:v2
118-
php-version: "8.2"
122+
php-version: "8.3"
119123
ini-values: memory_limit=-1
120124

121125
- name: "Get Composer Cache Directory"
@@ -128,11 +132,11 @@ jobs:
128132
with:
129133
path: |
130134
${{ steps.composer-cache.outputs.dir }}
131-
key: "php-8.2-locked-composer-${{ hashFiles('**/composer.lock') }}"
135+
key: "php-8.3-composer-${{ hashFiles('**/composer.json **/composer.lock') }}"
132136
restore-keys: |
133-
php-8.2-locked-composer-
137+
php-8.3-composer-
134138
135-
- name: "Install locked dependencies"
139+
- name: "Install dependencies"
136140
run: "composer install --no-interaction --no-progress --no-suggest"
137141

138142
- name: "Mutation Tests"

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
}
1616
],
1717
"require": {
18-
"php": "~8.1 || ~8.2 || ~8.3 || ~8.4 || ~8.5",
18+
"php": "~8.3 || ~8.4 || ~8.5",
1919
"ext-filter": "*",
2020
"ext-json": "*",
2121
"ext-simplexml": "*",
@@ -26,7 +26,7 @@
2626
"require-dev": {
2727
"phpunit/phpunit": "^10.5",
2828
"openlss/lib-array2xml": "^1.0",
29-
"symfony/expression-language": "^5.4|^6.4|^7.3|^8.0"
29+
"symfony/expression-language": "^5.4 || ^6.4 || ^7.3 || ^8.0"
3030
},
3131
"suggest": {
3232
"openlss/lib-array2xml": "In order ot use Coduo\\PHPMatcher\\Matcher\\XmlMatcher",

tools/cs-fixer/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"config": {
88
"allow-plugins": false,
99
"platform": {
10-
"php": "8.2"
10+
"php": "8.3"
1111
}
1212
}
1313
}

tools/cs-fixer/composer.lock

Lines changed: 12 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tools/infection/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"config": {
88
"allow-plugins": false,
99
"platform": {
10-
"php": "8.2"
10+
"php": "8.3"
1111
}
1212
}
1313
}

tools/infection/composer.lock

Lines changed: 12 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tools/phpbench/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"config": {
88
"allow-plugins": false,
99
"platform": {
10-
"php": "8.2"
10+
"php": "8.3"
1111
}
1212
}
1313
}

tools/phpbench/composer.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tools/phpstan/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"config": {
88
"allow-plugins": false,
99
"platform": {
10-
"php": "8.1"
10+
"php": "8.3"
1111
}
1212
}
1313
}

tools/phpstan/composer.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)