Skip to content

Commit e6d4100

Browse files
committed
GH Actions: update PHP versions in workflows
PHP 8.2 has been released today 🎉 and the `setup-php` action has announced support for PHP 8.3, so adding PHP 8.3 to the matrix and no longer allowing PHP 8.2 to fail the build. Builds against PHP 8.3 are still allowed to fail for now. Includes minor tweak setting PHP to `latest` for tasks where the PHP version isn't that relevant.
1 parent 78cda60 commit e6d4100

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/test.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Setup PHP
2424
uses: shivammathur/setup-php@v2
2525
with:
26-
php-version: '7.4'
26+
php-version: 'latest'
2727
coverage: none
2828
tools: cs2pr
2929

@@ -125,8 +125,15 @@ jobs:
125125
run: composer remove --dev squizlabs/php_codesniffer --no-update --no-interaction
126126

127127
- name: Install Composer dependencies
128+
if: ${{ matrix.php != '8.3' }}
128129
uses: ramsey/composer-install@v2
129130

131+
- name: "Install Composer dependencies (PHP 8.3, ignore PHP reqs)"
132+
if: ${{ matrix.php == '8.3' }}
133+
uses: ramsey/composer-install@v2
134+
with:
135+
composer-options: --ignore-platform-req=php
136+
130137
- name: 'Integration test 1 - linting own code, no colors'
131138
continue-on-error: true
132139
run: ./parallel-lint --exclude vendor --exclude tests/examples --no-colors .

0 commit comments

Comments
 (0)