Skip to content

Commit

Permalink
Also build a terminus.phar for PHP 7.4. Use this phar on functional t…
Browse files Browse the repository at this point in the history
…ests; we expect that the tests should pass on 7.4 and 8.2, but fail on 8.4.
  • Loading branch information
greg-1-anderson committed Dec 18, 2024
1 parent c033455 commit fadf111
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/3x.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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 }}
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit fadf111

Please sign in to comment.