62
62
runs-on : ${{ matrix.os }}
63
63
64
64
env :
65
- PHP_EXTENSIONS : none, dom, json, libxml, mbstring, openssl, pdo_sqlite, phar, soap, tokenizer, xml, xmlwriter
65
+ PHP_EXTENSIONS : none, curl, dom, json, libxml, mbstring, openssl, pdo_sqlite, phar, soap, tokenizer, xml, xmlwriter
66
66
PHP_INI_VALUES : assert.exception=1, zend.assertions=1, error_reporting=-1, log_errors_max_len=0, display_errors=On
67
67
68
68
strategy :
@@ -159,7 +159,7 @@ jobs:
159
159
with :
160
160
php-version : ${{ matrix.php-version }}
161
161
coverage : pcov
162
- extensions : none, dom, json, libxml, mbstring, pdo_sqlite, phar, soap, tokenizer, xml, xmlwriter
162
+ extensions : none, curl, dom, json, libxml, mbstring, pdo_sqlite, phar, soap, tokenizer, xml, xmlwriter
163
163
ini-values : assert.exception=1, zend.assertions=1, error_reporting=-1, log_errors_max_len=0, display_errors=On
164
164
tools : none
165
165
@@ -201,7 +201,7 @@ jobs:
201
201
with :
202
202
php-version : ${{ matrix.php-version }}
203
203
coverage : pcov
204
- extensions : none, dom, json, libxml, mbstring, pdo_sqlite, phar, soap, tokenizer, xml, xmlwriter
204
+ extensions : none, curl, dom, json, libxml, mbstring, pdo_sqlite, phar, soap, tokenizer, xml, xmlwriter
205
205
ini-values : assert.exception=1, zend.assertions=1, error_reporting=-1, log_errors_max_len=0, display_errors=On
206
206
tools : none
207
207
@@ -218,19 +218,65 @@ jobs:
218
218
- name : Assert that git tree is clean
219
219
run : git diff || echo "Run 'php build/scripts/generate-global-assert-wrappers.php' to regenerate global assert wrappers!"
220
220
221
- build-and-test- phar :
222
- name : Build and test PHAR
221
+ build-phar :
222
+ name : Build PHAR
223
223
224
224
runs-on : ubuntu-latest
225
225
226
226
env :
227
227
PHP_EXTENSIONS : none, dom, json, fileinfo, iconv, libxml, mbstring, pdo_sqlite, phar, soap, tokenizer, xml, xmlwriter
228
228
PHP_INI_VALUES : assert.exception=1, phar.readonly=0, zend.assertions=1
229
229
230
+ strategy :
231
+ matrix :
232
+ php-version :
233
+ - " 8.1"
234
+
235
+ steps :
236
+ - name : Checkout
237
+ uses : actions/checkout@v2
238
+
239
+ - name : Install PHP with extensions
240
+ uses : shivammathur/setup-php@v2
241
+ with :
242
+ php-version : ${{ matrix.php-version }}
243
+ coverage : none
244
+ extensions : ${{ env.PHP_EXTENSIONS }}
245
+ ini-values : ${{ env.PHP_INI_VALUES }}
246
+ tools : none
247
+
248
+ - name : Install java
249
+ uses : actions/setup-java@v1
250
+ with :
251
+ java-version : 1.8
252
+
253
+ - name : Build PHAR
254
+ run : ant phar-snapshot
255
+
256
+ - name : Upload PHAR
257
+ uses : actions/upload-artifact@v2
258
+ with :
259
+ name : phpunit-snapshot-phar
260
+ path : ./build/artifacts/phpunit-snapshot.phar
261
+ retention-days : 7
262
+
263
+ test-phar :
264
+ name : Test PHAR
265
+
266
+ needs :
267
+ - build-phar
268
+
269
+ runs-on : ubuntu-latest
270
+
271
+ env :
272
+ PHP_EXTENSIONS : none, curl, dom, json, fileinfo, iconv, libxml, mbstring, pdo_sqlite, phar, soap, tokenizer, xml, xmlwriter
273
+ PHP_INI_VALUES : assert.exception=1, phar.readonly=0, zend.assertions=1
274
+
230
275
strategy :
231
276
fail-fast : false
232
277
matrix :
233
278
php-version :
279
+ - " 7.3"
234
280
- " 7.4"
235
281
- " 8.0"
236
282
- " 8.1"
@@ -258,12 +304,14 @@ jobs:
258
304
with :
259
305
java-version : 1.8
260
306
261
- - name : Build PHAR and run the PHAR-specific tests with it
262
- run : ant build-phar-and-run-phar-specific-tests
263
-
264
- - uses : actions/upload-artifact@v2
265
- if : ${{ matrix.php-version == 8.1 }}
307
+ - name : Download PHAR
308
+ uses : actions/download-artifact@v2
266
309
with :
267
310
name : phpunit-snapshot-phar
268
- path : ./build/artifacts/phpunit-snapshot.phar
269
- retention-days : 7
311
+ path : ./build/artifacts/
312
+
313
+ - name : Make PHAR executable
314
+ run : chmod +x ./build/artifacts/phpunit-snapshot.phar
315
+
316
+ - name : Run PHAR-specific tests
317
+ run : ant run-phar-specific-tests
0 commit comments