@@ -20,37 +20,41 @@ jobs:
20
20
matrix :
21
21
include :
22
22
- php-version : ' 7.2'
23
- lint : false
24
23
dependency-versions : ' lowest'
25
- tools : ' composer:v1 '
24
+ tools : ' composer:v2 '
26
25
env :
27
26
SYMFONY_DEPRECATIONS_HELPER : disabled
28
27
29
28
- php-version : ' 7.4'
30
- lint : true
31
29
dependency-versions : ' highest'
32
30
tools : ' composer:v2'
33
31
env :
34
32
SYMFONY_DEPRECATIONS_HELPER : disabled
35
33
36
34
- php-version : ' 8.0'
37
- lint : true
38
35
dependency-versions : ' highest'
39
36
tools : ' composer:v2'
40
37
env :
41
38
SYMFONY_DEPRECATIONS_HELPER : disabled
39
+
42
40
- php-version : ' 8.1'
43
- lint : true
44
41
dependency-versions : ' highest'
45
42
tools : ' composer:v2'
46
43
env :
47
44
SYMFONY_DEPRECATIONS_HELPER : disabled
45
+
48
46
- php-version : ' 8.2'
49
- lint : true
47
+ dependency-versions : ' highest'
48
+ tools : ' composer:v2'
49
+ env :
50
+ SYMFONY_DEPRECATIONS_HELPER : disabled
51
+
52
+ - php-version : ' 8.3'
50
53
dependency-versions : ' highest'
51
54
tools : ' composer:v2'
52
55
env :
53
56
SYMFONY_DEPRECATIONS_HELPER : weak
57
+
54
58
services :
55
59
mysql :
56
60
image : mysql:5.7
62
66
63
67
steps :
64
68
- name : Checkout project
65
- uses : actions/checkout@v2
69
+ uses : actions/checkout@v4
66
70
67
71
- name : Install and configure PHP
68
72
uses : shivammathur/setup-php@v2
@@ -71,20 +75,48 @@ jobs:
71
75
extensions : ' mysql, gd'
72
76
tools : ${{ matrix.tools }}
73
77
78
+ - name : Remove phpspec/prophecy-phpunit
79
+ if : ${{ matrix.php-version == '7.2' }}
80
+ run : composer remove phpspec/prophecy-phpunit --no-update --dev
81
+
82
+ - name : Remove not required test tooling
83
+ run : composer remove "*php-cs-fixer*" "*phpstan*" --no-update --dev
84
+
74
85
- name : Install composer dependencies
75
- uses : ramsey/composer-install@v1
86
+ uses : ramsey/composer-install@v2
76
87
with :
77
88
dependency-versions : ${{matrix.dependency-versions}}
78
89
79
90
- name : Bootstrap test environment
80
91
run : composer bootstrap-test-environment
81
92
env : ${{ matrix.env }}
82
93
83
- - name : Lint code
84
- if : ${{ matrix.lint }}
85
- run : composer lint
86
- env : ${{ matrix.env }}
87
-
88
94
- name : Execute test cases
89
95
run : composer test
90
96
env : ${{ matrix.env }}
97
+
98
+ lint :
99
+ name : ' PHP Lint'
100
+ runs-on : ubuntu-latest
101
+
102
+ env :
103
+ DATABASE_URL :
' mysql://root:[email protected] /sulu_comment_test?serverVersion=5.7'
104
+
105
+ steps :
106
+ - name : Checkout project
107
+ uses : actions/checkout@v4
108
+
109
+ - name : Install and configure PHP
110
+ uses : shivammathur/setup-php@v2
111
+ with :
112
+ php-version : 8.3
113
+ extensions : ' mysql, gd'
114
+ tools : ' composer:v2'
115
+
116
+ - name : Install composer dependencies
117
+ uses : ramsey/composer-install@v2
118
+ with :
119
+ dependency-versions : ' highest'
120
+
121
+ - name : Lint code
122
+ run : composer lint
0 commit comments