Skip to content

Commit 59d1fca

Browse files
authored
Increase CI supported versions (#45)
1 parent e2bb412 commit 59d1fca

File tree

12 files changed

+292
-176
lines changed

12 files changed

+292
-176
lines changed

.github/workflows/reusable-CI-workflow.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ jobs:
7676
php-version: ${{ ( needs.fetch-supported-versions.outputs.php-min == '8.0' ) && '8.1' || needs.fetch-supported-versions.outputs.php-min }}
7777
symfony-version: '6.4'
7878
- job-name: Late PHP migration # => Highest symfony version with lowest php version allowed by composer config
79-
# Fix - Sf 7.0 require php 8.1 minimum, most of deps require 8.2 !
80-
php-version: ${{ ( needs.fetch-supported-versions.outputs.symfony-max == '7.0' && needs.fetch-supported-versions.outputs.php-min == '8.0' ) && '8.2' || needs.fetch-supported-versions.outputs.php-min }}
79+
# Fix - Sf 7.3 require php 8.2 !
80+
php-version: ${{ ( needs.fetch-supported-versions.outputs.symfony-max == '7.3' && needs.fetch-supported-versions.outputs.php-min == '8.0' ) && '8.2' || needs.fetch-supported-versions.outputs.php-min }}
8181
symfony-version: '${{ needs.fetch-supported-versions.outputs.symfony-max }}'
8282
- job-name: Late Symfony migration # => Lowest symfony version with highest php version allowed by composer config
8383
php-version: '${{ needs.fetch-supported-versions.outputs.php-max }}'
@@ -250,8 +250,8 @@ jobs:
250250
# Fix - behat/gherkin => Avoid issue with behat <-> gherkin packages (See https://github.com/Behat/Gherkin/issues/317)
251251
pkg-extra-constraints: behat/gherkin:~4.12.0
252252
- job-name: Symfony with lowest supported PHP version
253-
# Fix - symfony/validator 7.1 require php 8.2 minimum !
254-
php-version: ${{ ( needs.fetch-supported-versions.outputs.symfony-next == '7.1' && needs.fetch-supported-versions.outputs.php-min == '8.0' ) && '8.2' || needs.fetch-supported-versions.outputs.php-min }}
253+
# Fix - symfony/validator 7.4 require php 8.2 minimum !
254+
php-version: ${{ ( needs.fetch-supported-versions.outputs.symfony-next == '7.4' && needs.fetch-supported-versions.outputs.php-min == '8.0' ) && '8.2' || needs.fetch-supported-versions.outputs.php-min }}
255255
symfony-version: ${{ needs.fetch-supported-versions.outputs.symfony-next }}
256256
# Fix - behat/gherkin => Avoid issue with behat <-> gherkin packages (See https://github.com/Behat/Gherkin/issues/317)
257257
pkg-extra-constraints: behat/gherkin:~4.12.0
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"php": {"min": "8.0", "max": "8.4", "next": "8.5"},
3-
"symfony": {"min": "5.4", "max": "7.0", "next": "7.1"}
3+
"symfony": {"min": "5.4", "max": "7.3", "next": "7.4"}
44
}

features/03_comparaison-constraints/equalTo-constraints.feature

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,12 @@ Feature: ConstraintToParamsDocTransformer - EqualTo & NotEqualTo constraint
4242
Given I have the following Constraint:
4343
"""
4444
use Symfony\Component\Validator\Constraints as ConstraintNS;
45-
return new ConstraintNS\EqualTo([
46-
'value' => 'expected-text',
47-
'payload' => [
45+
return new ConstraintNS\EqualTo(
46+
'expected-text',
47+
null,
48+
null,
49+
null,
50+
[
4851
'documentation' => [
4952
'description' => 'description',
5053
'default' => 'default',
@@ -53,7 +56,7 @@ Feature: ConstraintToParamsDocTransformer - EqualTo & NotEqualTo constraint
5356
'nullable' => false
5457
]
5558
]
56-
]);
59+
);
5760
"""
5861
When I transform constraint
5962
Then I should have a constraint doc of class "Yoanm\JsonRpcServerDoc\Domain\Model\Type\TypeDoc"
@@ -73,9 +76,12 @@ Feature: ConstraintToParamsDocTransformer - EqualTo & NotEqualTo constraint
7376
Given I have the following Constraint:
7477
"""
7578
use Symfony\Component\Validator\Constraints as ConstraintNS;
76-
return new ConstraintNS\NotEqualTo([
77-
'value' => 'expected-text',
78-
'payload' => [
79+
return new ConstraintNS\NotEqualTo(
80+
'expected-text',
81+
null,
82+
null,
83+
null,
84+
[
7985
'documentation' => [
8086
'description' => 'description',
8187
'default' => 'default',
@@ -84,7 +90,7 @@ Feature: ConstraintToParamsDocTransformer - EqualTo & NotEqualTo constraint
8490
'nullable' => false
8591
]
8692
]
87-
]);
93+
);
8894
"""
8995
When I transform constraint
9096
Then I should have a constraint doc of class "Yoanm\JsonRpcServerDoc\Domain\Model\Type\TypeDoc"

features/03_comparaison-constraints/greaterThan-constraints.feature

Lines changed: 42 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,17 @@ Feature: ConstraintToParamsDocTransformer - GreaterThan & GreaterThanOrEqual con
2121
Given I have the following Constraint:
2222
"""
2323
use Symfony\Component\Validator\Constraints as ConstraintNS;
24-
return new ConstraintNS\GreaterThan([
25-
'value' => 2,
26-
'payload' => [
24+
return new ConstraintNS\GreaterThan(
25+
2,
26+
null,
27+
null,
28+
null,
29+
[
2730
'documentation' => [
2831
'type' => 'integer'
2932
]
3033
]
31-
]);
34+
);
3235
"""
3336
When I transform constraint
3437
Then I should have a constraint doc of class "Yoanm\JsonRpcServerDoc\Domain\Model\Type\IntegerDoc"
@@ -49,14 +52,17 @@ Feature: ConstraintToParamsDocTransformer - GreaterThan & GreaterThanOrEqual con
4952
Given I have the following Constraint:
5053
"""
5154
use Symfony\Component\Validator\Constraints as ConstraintNS;
52-
return new ConstraintNS\GreaterThan([
53-
'value' => 2.4,
54-
'payload' => [
55+
return new ConstraintNS\GreaterThan(
56+
2.4,
57+
null,
58+
null,
59+
null,
60+
[
5561
'documentation' => [
5662
'type' => 'float'
5763
]
5864
]
59-
]);
65+
);
6066
"""
6167
When I transform constraint
6268
Then I should have a constraint doc of class "Yoanm\JsonRpcServerDoc\Domain\Model\Type\FloatDoc"
@@ -77,14 +83,17 @@ Feature: ConstraintToParamsDocTransformer - GreaterThan & GreaterThanOrEqual con
7783
Given I have the following Constraint:
7884
"""
7985
use Symfony\Component\Validator\Constraints as ConstraintNS;
80-
return new ConstraintNS\GreaterThan([
81-
'value' => 2,
82-
'payload' => [
86+
return new ConstraintNS\GreaterThan(
87+
2,
88+
null,
89+
null,
90+
null,
91+
[
8392
'documentation' => [
8493
'type' => 'array'
8594
]
8695
]
87-
]);
96+
);
8897
"""
8998
When I transform constraint
9099
Then I should have a constraint doc of class "Yoanm\JsonRpcServerDoc\Domain\Model\Type\ArrayDoc"
@@ -123,14 +132,17 @@ Feature: ConstraintToParamsDocTransformer - GreaterThan & GreaterThanOrEqual con
123132
Given I have the following Constraint:
124133
"""
125134
use Symfony\Component\Validator\Constraints as ConstraintNS;
126-
return new ConstraintNS\GreaterThanOrEqual([
127-
'value' => 2,
128-
'payload' => [
135+
return new ConstraintNS\GreaterThanOrEqual(
136+
2,
137+
null,
138+
null,
139+
null,
140+
[
129141
'documentation' => [
130142
'type' => 'integer'
131143
]
132144
]
133-
]);
145+
);
134146
"""
135147
When I transform constraint
136148
Then I should have a constraint doc of class "Yoanm\JsonRpcServerDoc\Domain\Model\Type\IntegerDoc"
@@ -151,14 +163,17 @@ Feature: ConstraintToParamsDocTransformer - GreaterThan & GreaterThanOrEqual con
151163
Given I have the following Constraint:
152164
"""
153165
use Symfony\Component\Validator\Constraints as ConstraintNS;
154-
return new ConstraintNS\GreaterThanOrEqual([
155-
'value' => 2.4,
156-
'payload' => [
166+
return new ConstraintNS\GreaterThanOrEqual(
167+
2.4,
168+
null,
169+
null,
170+
null,
171+
[
157172
'documentation' => [
158173
'type' => 'float'
159174
]
160175
]
161-
]);
176+
);
162177
"""
163178
When I transform constraint
164179
Then I should have a constraint doc of class "Yoanm\JsonRpcServerDoc\Domain\Model\Type\FloatDoc"
@@ -179,14 +194,17 @@ Feature: ConstraintToParamsDocTransformer - GreaterThan & GreaterThanOrEqual con
179194
Given I have the following Constraint:
180195
"""
181196
use Symfony\Component\Validator\Constraints as ConstraintNS;
182-
return new ConstraintNS\GreaterThanOrEqual([
183-
'value' => 2,
184-
'payload' => [
197+
return new ConstraintNS\GreaterThanOrEqual(
198+
2,
199+
null,
200+
null,
201+
null,
202+
[
185203
'documentation' => [
186204
'type' => 'array'
187205
]
188206
]
189-
]);
207+
);
190208
"""
191209
When I transform constraint
192210
Then I should have a constraint doc of class "Yoanm\JsonRpcServerDoc\Domain\Model\Type\ArrayDoc"

0 commit comments

Comments
 (0)