Skip to content

Commit eef449e

Browse files
Merge branch '8.5' into 9.5
2 parents 891f0f1 + 18fad58 commit eef449e

File tree

1 file changed

+60
-12
lines changed

1 file changed

+60
-12
lines changed

.github/workflows/ci.yml

Lines changed: 60 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
runs-on: ${{ matrix.os }}
6363

6464
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
6666
PHP_INI_VALUES: assert.exception=1, zend.assertions=1, error_reporting=-1, log_errors_max_len=0, display_errors=On
6767

6868
strategy:
@@ -159,7 +159,7 @@ jobs:
159159
with:
160160
php-version: ${{ matrix.php-version }}
161161
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
163163
ini-values: assert.exception=1, zend.assertions=1, error_reporting=-1, log_errors_max_len=0, display_errors=On
164164
tools: none
165165

@@ -201,7 +201,7 @@ jobs:
201201
with:
202202
php-version: ${{ matrix.php-version }}
203203
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
205205
ini-values: assert.exception=1, zend.assertions=1, error_reporting=-1, log_errors_max_len=0, display_errors=On
206206
tools: none
207207

@@ -218,19 +218,65 @@ jobs:
218218
- name: Assert that git tree is clean
219219
run: git diff || echo "Run 'php build/scripts/generate-global-assert-wrappers.php' to regenerate global assert wrappers!"
220220

221-
build-and-test-phar:
222-
name: Build and test PHAR
221+
build-phar:
222+
name: Build PHAR
223223

224224
runs-on: ubuntu-latest
225225

226226
env:
227227
PHP_EXTENSIONS: none, dom, json, fileinfo, iconv, libxml, mbstring, pdo_sqlite, phar, soap, tokenizer, xml, xmlwriter
228228
PHP_INI_VALUES: assert.exception=1, phar.readonly=0, zend.assertions=1
229229

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+
230275
strategy:
231276
fail-fast: false
232277
matrix:
233278
php-version:
279+
- "7.3"
234280
- "7.4"
235281
- "8.0"
236282
- "8.1"
@@ -258,12 +304,14 @@ jobs:
258304
with:
259305
java-version: 1.8
260306

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
266309
with:
267310
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

Comments
 (0)