8
8
pull_request : ~
9
9
10
10
jobs :
11
+ cs_fix :
12
+ name : Run code style check
13
+ runs-on : " ubuntu-20.04"
14
+ strategy :
15
+ matrix :
16
+ php :
17
+ - ' 8.0'
18
+ steps :
19
+ - uses : actions/checkout@v2
20
+
21
+ - name : Setup PHP Action
22
+ uses : shivammathur/setup-php@v2
23
+ with :
24
+ php-version : ${{ matrix.php }}
25
+ coverage : none
26
+ extensions : ' pdo_sqlite, gd'
27
+ tools : cs2pr
28
+
29
+ - uses : " ramsey/composer-install@v1"
30
+ with :
31
+ dependency-versions : " highest"
32
+
33
+ - name : Run code style check
34
+ run : composer run-script check-cs -- --format=checkstyle | cs2pr
35
+
11
36
tests :
12
37
name : Unit tests & SQLite integration tests
13
38
runs-on : " ubuntu-20.04"
@@ -16,17 +41,11 @@ jobs:
16
41
strategy :
17
42
fail-fast : false
18
43
matrix :
19
- experimental : [ false ]
20
44
php :
21
45
- ' 7.3'
22
46
- ' 7.4'
23
- composer_options : [ "" ]
24
- include :
25
- - php : ' 8.0'
26
- composer_options : " --ignore-platform-req php"
27
- - php : ' 8.1'
28
- composer_options : " --ignore-platform-req php"
29
- skip_code_style : true
47
+ - ' 8.0'
48
+ - ' 8.1'
30
49
31
50
steps :
32
51
- uses : actions/checkout@v2
@@ -42,18 +61,13 @@ jobs:
42
61
- uses : " ramsey/composer-install@v1"
43
62
with :
44
63
dependency-versions : " highest"
45
- composer-options : " ${{ matrix.composer_options }}"
46
64
47
65
- name : Setup problem matchers for PHPUnit
48
66
run : echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
49
67
50
68
- name : Run PHPStan analysis
51
69
run : composer run-script phpstan
52
70
53
- - name : Run code style check
54
- if : matrix.skip_code_style != true
55
- run : composer run-script check-cs -- --format=checkstyle | cs2pr
56
-
57
71
- name : Run unit test suite
58
72
run : composer run-script unit
59
73
@@ -86,12 +100,8 @@ jobs:
86
100
php :
87
101
- ' 7.3'
88
102
- ' 7.4'
89
- composer_options : [ "" ]
90
- include :
91
- - php : ' 8.0'
92
- composer_options : " --ignore-platform-req php"
93
- - php : ' 8.1'
94
- composer_options : " --ignore-platform-req php"
103
+ - ' 8.0'
104
+ - ' 8.1'
95
105
96
106
steps :
97
107
- uses : actions/checkout@v2
@@ -107,7 +117,6 @@ jobs:
107
117
- uses : " ramsey/composer-install@v1"
108
118
with :
109
119
dependency-versions : " highest"
110
- composer-options : " ${{ matrix.composer_options }}"
111
120
112
121
- name : Setup problem matchers for PHPUnit
113
122
run : echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
@@ -146,12 +155,8 @@ jobs:
146
155
matrix :
147
156
php :
148
157
- ' 7.4'
149
- composer_options : [ "" ]
150
- include :
151
- - php : ' 8.0'
152
- composer_options : " --ignore-platform-req php"
153
- - php : ' 8.1'
154
- composer_options : " --ignore-platform-req php"
158
+ - ' 8.0'
159
+ - ' 8.1'
155
160
156
161
steps :
157
162
- uses : actions/checkout@v2
@@ -167,7 +172,6 @@ jobs:
167
172
- uses : " ramsey/composer-install@v1"
168
173
with :
169
174
dependency-versions : " highest"
170
- composer-options : " ${{ matrix.composer_options }}"
171
175
172
176
- name : Setup problem matchers for PHPUnit
173
177
run : echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
0 commit comments