From 8f78e91ac07a274c58ca75e835a421746a61f39b Mon Sep 17 00:00:00 2001 From: Steve Grunwell Date: Mon, 23 Nov 2020 21:35:15 -0500 Subject: [PATCH 1/2] Install different versions of Runkit(7) based on the PHP version --- .github/workflows/unit-tests.yml | 35 +++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index f0aae76..655bd01 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -20,10 +20,43 @@ jobs: - name: Configure PHP environment uses: shivammathur/setup-php@v2 + if: ${{ matrix.php >= '7.2' }} with: php-version: ${{ matrix.php }} tools: pecl - extensions: runkit, runkit7-alpha + extensions: runkit7-alpha + env: + fail-fast: true + + - name: Configure PHP environment (PHP 7.1 only) + uses: shivammathur/setup-php@v2 + if: ${{ matrix.php == '7.1' }} + with: + php-version: ${{ matrix.php }} + tools: pecl + extensions: runkit7-3.1.0a1 + env: + fail-fast: true + + - name: Configure PHP environment (PHP 7.0 only) + uses: shivammathur/setup-php@v2 + if: ${{ matrix.php == '7.0' }} + with: + php-version: ${{ matrix.php }} + tools: pecl + extensions: https://github.com/runkit7/runkit7/releases/download/1.0.11/runkit-1.0.11.tgz + env: + fail-fast: true + + - name: Configure PHP environment (PHP 5.x only) + uses: shivammathur/setup-php@v2 + if: ${{ matrix.php <= '5.6' }} + with: + php-version: ${{ matrix.php }} + tools: pecl + extensions: runkit + env: + fail-fast: true - name: Validate composer.json and composer.lock run: composer validate From 699b8895cb575801ef41c3814815a12808119243 Mon Sep 17 00:00:00 2001 From: Steve Grunwell Date: Mon, 23 Nov 2020 22:01:20 -0500 Subject: [PATCH 2/2] Allow PHP 7.0 to be skipped with regards to runkit7 --- .github/workflows/unit-tests.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 655bd01..1ea6e3b 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -38,15 +38,15 @@ jobs: env: fail-fast: true + # Version 2.x of runkit7 dropped PHP 7.0 support, but older releases are not available via PECL. + # https://pecl.php.net/package/runkit7 - name: Configure PHP environment (PHP 7.0 only) uses: shivammathur/setup-php@v2 if: ${{ matrix.php == '7.0' }} with: php-version: ${{ matrix.php }} tools: pecl - extensions: https://github.com/runkit7/runkit7/releases/download/1.0.11/runkit-1.0.11.tgz - env: - fail-fast: true + extensions: runkit7-1.0.11 - name: Configure PHP environment (PHP 5.x only) uses: shivammathur/setup-php@v2