15
15
cache-version : " 1"
16
16
composer-version : " v1"
17
17
composer-install : " composer update --no-interaction --no-progress --no-suggest --prefer-dist --prefer-stable"
18
+ coverage : " none"
18
19
19
20
jobs :
20
21
qa :
51
52
with :
52
53
php-version : " ${{ matrix.php-version }}"
53
54
extensions : " ${{ env.extensions }}"
54
- tools : " composer:${{ env.composer-version }} "
55
+ tools : " composer:${{ env.composer-version }}, cs2pr"
56
+ coverage : " ${{ env.coverage }}"
55
57
56
58
- name : " Setup problem matchers for PHP"
57
59
run : ' echo "::add-matcher::${{ runner.tool_cache }}/php.json"'
@@ -110,7 +112,8 @@ jobs:
110
112
with :
111
113
php-version : " ${{ matrix.php-version }}"
112
114
extensions : " ${{ env.extensions }}"
113
- tools : " composer:${{ env.composer-version }} "
115
+ tools : " composer:${{ env.composer-version }}"
116
+ coverage : " ${{ env.coverage }}"
114
117
115
118
- name : " Setup problem matchers for PHP"
116
119
run : ' echo "::add-matcher::${{ runner.tool_cache }}/php.json"'
@@ -142,12 +145,12 @@ jobs:
142
145
operating-system : ["ubuntu-latest"]
143
146
composer-args : [ "" ]
144
147
include :
145
- - php-version : " 7.4 "
148
+ - php-version : " 7.2 "
146
149
operating-system : " ubuntu-latest"
147
150
composer-args : " --prefer-lowest"
148
151
- php-version : " 8.0"
149
152
operating-system : " ubuntu-latest"
150
- composer-args : " --ignore-platform-reqs "
153
+ composer-args : " "
151
154
fail-fast : false
152
155
153
156
continue-on-error : " ${{ matrix.php-version == '8.0' }}"
@@ -176,7 +179,8 @@ jobs:
176
179
with :
177
180
php-version : " ${{ matrix.php-version }}"
178
181
extensions : " ${{ env.extensions }}"
179
- tools : " composer:${{ env.composer-version }} "
182
+ tools : " composer:${{ env.composer-version }}"
183
+ coverage : " ${{ env.coverage }}"
180
184
181
185
- name : " Setup problem matchers for PHP"
182
186
run : ' echo "::add-matcher::${{ runner.tool_cache }}/php.json"'
@@ -195,12 +199,16 @@ jobs:
195
199
- name : " Install dependencies"
196
200
run : " ${{ env.composer-install }} ${{ matrix.composer-args }}"
197
201
198
- - name : " Setup problem matchers for PHPUnit"
199
- run : ' echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"'
200
-
201
202
- name : " Tests"
202
203
run : " make tests"
203
204
205
+ - name : " Upload test output"
206
+ if : ${{ failure() }}
207
+ uses : actions/upload-artifact@v2
208
+ with :
209
+ name : output
210
+ path : tests/**/output
211
+
204
212
tests-code-coverage :
205
213
name : " Tests with code coverage"
206
214
runs-on : " ${{ matrix.operating-system }}"
@@ -237,7 +245,8 @@ jobs:
237
245
with :
238
246
php-version : " ${{ matrix.php-version }}"
239
247
extensions : " ${{ env.extensions }}"
240
- tools : " composer:${{ env.composer-version }} "
248
+ tools : " composer:${{ env.composer-version }}"
249
+ coverage : " ${{ env.coverage }}"
241
250
242
251
- name : " Setup problem matchers for PHP"
243
252
run : ' echo "::add-matcher::${{ runner.tool_cache }}/php.json"'
@@ -259,6 +268,13 @@ jobs:
259
268
- name : " Tests"
260
269
run : " make coverage-clover"
261
270
271
+ - name : " Upload test output"
272
+ if : ${{ failure() }}
273
+ uses : actions/upload-artifact@v2
274
+ with :
275
+ name : output
276
+ path : tests/**/output
277
+
262
278
- name : " Coveralls.io"
263
279
env :
264
280
CI_NAME : github
0 commit comments