Skip to content

Commit 863fbe1

Browse files
committed
chore(ci): real test against PHP 8.0
Signed-off-by: Jack Cherng <[email protected]>
1 parent 7e830bf commit 863fbe1

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/php.yml

+2-4
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,8 @@ jobs:
4646
restore-keys: ${{ matrix.os }}-${{ matrix.php-versions }}-composer-
4747

4848
- name: Install dependencies
49-
# php-cs-fixer doesn't suppoert PHP 8 yet so force the max version to be 7.4.99
5049
run: |
51-
composer config platform.php $(php -r 'preg_match("#^\d+\.\d+\.\d+#", PHP_VERSION, $v); echo version_compare("8.0.0", $v[0]) > 0 ? $v[0] : "7.4.99";')
50+
composer config platform.php $(php -r 'preg_match("#^\d+\.\d+\.\d+#", PHP_VERSION, $v); echo $v[0];')
5251
composer update --prefer-dist --no-progress
5352
5453
- name: Run composer script "analyze"
@@ -88,10 +87,9 @@ jobs:
8887
key: ${{ matrix.os }}-${{ matrix.php-versions }}-composer-${{ hashFiles('**/composer.lock') }}
8988
restore-keys: ${{ matrix.os }}-${{ matrix.php-versions }}-composer-
9089

91-
# php-cs-fixer doesn't suppoert PHP 8 yet so force the max version to be 7.4.99
9290
- name: Install dependencies
9391
run: |
94-
composer config platform.php $(php -r 'preg_match("#^\d+\.\d+\.\d+#", PHP_VERSION, $v); echo version_compare("8.0.0", $v[0]) > 0 ? $v[0] : "7.4.99";')
92+
composer config platform.php $(php -r 'preg_match("#^\d+\.\d+\.\d+#", PHP_VERSION, $v); echo $v[0];')
9593
composer update --prefer-dist --no-progress
9694
9795
- name: Run composer script "test"

0 commit comments

Comments
 (0)