Skip to content

Commit 2ba08e9

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

File tree

10 files changed

+61
-56
lines changed

10 files changed

+61
-56
lines changed

.github/workflows/test-suite.yml

Lines changed: 27 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,27 @@ 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:
16+
fail-fast: false
1617
matrix:
1718
dependencies:
18-
- "locked"
1919
- "lowest"
2020
- "highest"
2121
php-version:
22-
- "8.1"
23-
- "8.2"
2422
- "8.3"
2523
- "8.4"
2624
- "8.5"
27-
operating-system:
28-
- "ubuntu-latest"
25+
symfony-version:
26+
- "5.4.*"
27+
- "6.4.*"
28+
- "7.3.*"
29+
- "7.4.*"
30+
- "8.0.*"
31+
exclude:
32+
- php-version: 8.3
33+
symfony-version: "8.0.*"
2934

3035
steps:
3136
- name: "Checkout"
@@ -37,7 +42,7 @@ jobs:
3742
coverage: "pcov"
3843
php-version: "${{ matrix.php-version }}"
3944
ini-values: memory_limit=-1
40-
tools: composer:v2
45+
tools: flex, composer:v2
4146

4247
- name: "Get Composer Cache Directory"
4348
id: composer-cache
@@ -49,21 +54,21 @@ jobs:
4954
with:
5055
path: |
5156
${{ steps.composer-cache.outputs.dir }}
52-
key: "php-${{ matrix.php-version }}-${{ matrix.dependencies }}-composer-${{ hashFiles('**/composer.lock') }}"
57+
key: "php-${{ matrix.php-version }}-composer-${{ hashFiles('**/composer.json **/composer.lock') }}"
5358
restore-keys: |
54-
php-${{ matrix.php-version }}-${{ matrix.dependencies }}-composer-
59+
php-${{ matrix.php-version }}-composer-
5560
5661
- name: "Install lowest dependencies"
5762
if: ${{ matrix.dependencies == 'lowest' }}
5863
run: "composer update --prefer-lowest --no-interaction --no-progress --no-suggest"
64+
env:
65+
SYMFONY_REQUIRE: ${{ matrix.symfony-version }}
5966

6067
- name: "Install highest dependencies"
6168
if: ${{ matrix.dependencies == 'highest' }}
6269
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"
70+
env:
71+
SYMFONY_REQUIRE: ${{ matrix.symfony-version }}
6772

6873
- name: "Tests"
6974
run: "composer test"
@@ -79,7 +84,7 @@ jobs:
7984
uses: "shivammathur/setup-php@v2"
8085
with:
8186
coverage: none
82-
php-version: "8.1"
87+
php-version: "8.3"
8388
ini-values: memory_limit=-1
8489
tools: composer:v2
8590

@@ -93,11 +98,11 @@ jobs:
9398
with:
9499
path: |
95100
${{ steps.composer-cache.outputs.dir }}
96-
key: "php-8.1-locked-composer-${{ hashFiles('**/composer.lock') }}"
101+
key: "php-8.3-composer-${{ hashFiles('**/composer.json **/composer.lock') }}"
97102
restore-keys: |
98-
php-8.1-locked-composer-
103+
php-8.3-composer-
99104
100-
- name: "Install locked dependencies"
105+
- name: "Install dependencies"
101106
run: "composer install --no-interaction --no-progress --no-suggest"
102107

103108
- name: "Static Analyze"
@@ -115,7 +120,7 @@ jobs:
115120
with:
116121
coverage: "pcov"
117122
tools: composer:v2
118-
php-version: "8.2"
123+
php-version: "8.3"
119124
ini-values: memory_limit=-1
120125

121126
- name: "Get Composer Cache Directory"
@@ -128,11 +133,11 @@ jobs:
128133
with:
129134
path: |
130135
${{ steps.composer-cache.outputs.dir }}
131-
key: "php-8.2-locked-composer-${{ hashFiles('**/composer.lock') }}"
136+
key: "php-8.3-composer-${{ hashFiles('**/composer.json **/composer.lock') }}"
132137
restore-keys: |
133-
php-8.2-locked-composer-
138+
php-8.3-composer-
134139
135-
- name: "Install locked dependencies"
140+
- name: "Install dependencies"
136141
run: "composer install --no-interaction --no-progress --no-suggest"
137142

138143
- 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)