36
36
strategy :
37
37
fail-fast : false
38
38
matrix :
39
- php-versions : ['7.4', '8.0', '8.1']
39
+ php-versions : ['7.4', '8.0', '8.1', '8.2' ]
40
40
db-platforms : ['MySQLi', 'Postgre', 'SQLite3', 'SQLSRV', 'OCI8']
41
41
mysql-versions : ['5.7']
42
42
include :
@@ -151,10 +151,18 @@ jobs:
151
151
key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
152
152
restore-keys : ${{ runner.os }}-composer-
153
153
154
+ # remove when PHP 8.2 is generally available
155
+ - name : Ignore option for PHP version
156
+ uses : actions/github-script@v6
157
+ id : composer-ignore-php-option
158
+ with :
159
+ script : ' return "${{ matrix.php-versions }}" == "8.2" ? "--ignore-platform-req=php" : ""'
160
+ result-encoding : string
161
+
154
162
- name : Install dependencies
155
163
run : |
156
- composer update --ansi --no-interaction
157
- composer remove --ansi --dev --unused -W -- rector/rector phpstan/phpstan friendsofphp/php-cs-fixer nexusphp/cs-config codeigniter/coding-standard
164
+ composer update --ansi --no-interaction ${{ steps.composer-ignore-php-option.outputs.result }}
165
+ composer remove --ansi --dev --unused ${{ steps.composer-ignore-php-option.outputs.result }} -W -- rector/rector phpstan/phpstan friendsofphp/php-cs-fixer nexusphp/cs-config codeigniter/coding-standard
158
166
env :
159
167
COMPOSER_AUTH : ${{ secrets.COMPOSER_AUTH }}
160
168
@@ -170,6 +178,7 @@ jobs:
170
178
result-encoding : string
171
179
172
180
- name : Test with PHPUnit
181
+ continue-on-error : ${{ matrix.php-versions == '8.2' }} # remove when PHP 8.2 is generally available
173
182
run : script -e -c "vendor/bin/phpunit --color=always --exclude-group=auto-review ${{ steps.phpunit-coverage-option.outputs.result }}"
174
183
env :
175
184
DB : ${{ matrix.db-platforms }}
0 commit comments