Skip to content

Commit fadf111

Browse files
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.
1 parent c033455 commit fadf111

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

.github/workflows/3x.yml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,20 @@ jobs:
5050
name: terminus-phar
5151
path: terminus.phar
5252
if-no-files-found: error
53+
- name: Adjust dependencies for PHP 7.4
54+
run: composer config platform.php 7.4.28
55+
- name: Update dependencies
56+
run: composer update
57+
- name: Phar Build for PHP 7.4
58+
run: composer phar:build
59+
- name: Rename PHP 7.4 phar
60+
run: mv terminus.phar terminus-php74.phar
61+
- name: Save terminus-php74.phar as artifact
62+
uses: actions/upload-artifact@v4
63+
with:
64+
name: terminus-php74-phar
65+
path: terminus-php74.phar
66+
if-no-files-found: error
5367

5468
functional:
5569
runs-on: ${{ matrix.operating-system }}
@@ -58,7 +72,7 @@ jobs:
5872
strategy:
5973
matrix:
6074
operating-system: [ 'macos-latest' ]
61-
php-versions: [ '8.2', '8.4' ]
75+
php-versions: [ '7.4', '8.2', '8.4' ]
6276
max-parallel: 1
6377
env:
6478
TERMINUS_TOKEN: ${{ secrets.TERMINUS_TOKEN }}
@@ -100,6 +114,12 @@ jobs:
100114
uses: actions/download-artifact@v4
101115
with:
102116
name: terminus-phar
117+
- name: Download terminus-php74.phar as artifact
118+
uses: actions/download-artifact@v4
119+
with:
120+
name: terminus-php74-phar
121+
- name: Rename terminus-php74.phar to terminus.phar
122+
mv: terminus-php74.phar terminus.phar
103123
- name: Install Composer Dependencies
104124
run: composer install --no-interaction --prefer-dist
105125
- name: Setup tmate session

0 commit comments

Comments
 (0)