From fadf111759aadeaef70290a90925b59a6336f10e Mon Sep 17 00:00:00 2001 From: Greg Anderson Date: Tue, 17 Dec 2024 16:43:41 -0800 Subject: [PATCH] Also build a terminus.phar for PHP 7.4. Use this phar on functional tests; we expect that the tests should pass on 7.4 and 8.2, but fail on 8.4. --- .github/workflows/3x.yml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/.github/workflows/3x.yml b/.github/workflows/3x.yml index 728f18c56..ca403f5c9 100644 --- a/.github/workflows/3x.yml +++ b/.github/workflows/3x.yml @@ -50,6 +50,20 @@ jobs: name: terminus-phar path: terminus.phar if-no-files-found: error + - name: Adjust dependencies for PHP 7.4 + run: composer config platform.php 7.4.28 + - name: Update dependencies + run: composer update + - name: Phar Build for PHP 7.4 + run: composer phar:build + - name: Rename PHP 7.4 phar + run: mv terminus.phar terminus-php74.phar + - name: Save terminus-php74.phar as artifact + uses: actions/upload-artifact@v4 + with: + name: terminus-php74-phar + path: terminus-php74.phar + if-no-files-found: error functional: runs-on: ${{ matrix.operating-system }} @@ -58,7 +72,7 @@ jobs: strategy: matrix: operating-system: [ 'macos-latest' ] - php-versions: [ '8.2', '8.4' ] + php-versions: [ '7.4', '8.2', '8.4' ] max-parallel: 1 env: TERMINUS_TOKEN: ${{ secrets.TERMINUS_TOKEN }} @@ -100,6 +114,12 @@ jobs: uses: actions/download-artifact@v4 with: name: terminus-phar + - name: Download terminus-php74.phar as artifact + uses: actions/download-artifact@v4 + with: + name: terminus-php74-phar + - name: Rename terminus-php74.phar to terminus.phar + mv: terminus-php74.phar terminus.phar - name: Install Composer Dependencies run: composer install --no-interaction --prefer-dist - name: Setup tmate session