Skip to content

Commit c67eb2b

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

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,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,9 +54,12 @@ 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-
60+
61+
- name: "Configure Symfony"
62+
run: composer config extra.symfony.require "${{ matrix.symfony-version }}"
5563

5664
- name: "Install lowest dependencies"
5765
if: ${{ matrix.dependencies == 'lowest' }}
@@ -61,10 +69,6 @@ jobs:
6169
if: ${{ matrix.dependencies == 'highest' }}
6270
run: "composer update --no-interaction --no-progress --no-suggest"
6371

64-
- name: "Install locked dependencies"
65-
if: ${{ matrix.dependencies == 'locked' }}
66-
run: "composer install --no-interaction --no-progress --no-suggest"
67-
6872
- name: "Tests"
6973
run: "composer test"
7074

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