Skip to content

Commit c2e4aa6

Browse files
Merge branch '9.5'
2 parents c7529eb + eef449e commit c2e4aa6

File tree

1 file changed

+59
-12
lines changed

1 file changed

+59
-12
lines changed

.github/workflows/ci.yml

Lines changed: 59 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: memory_limit=-1, assert.exception=1, zend.assertions=1, error_reporting=-1, log_errors_max_len=0, display_errors=On
6767

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

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

@@ -216,15 +216,60 @@ jobs:
216216
- name: Assert that git tree is clean
217217
run: git diff || echo "Run 'php build/scripts/generate-global-assert-wrappers.php' to regenerate global assert wrappers!"
218218

219-
build-and-test-phar:
220-
name: Build and test PHAR
219+
build-phar:
220+
name: Build PHAR
221221

222222
runs-on: ubuntu-latest
223223

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

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+
228273
strategy:
229274
fail-fast: false
230275
matrix:
@@ -255,12 +300,14 @@ jobs:
255300
with:
256301
java-version: 1.8
257302

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
263305
with:
264306
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

Comments
 (0)