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