Skip to content

Commit d51ff40

Browse files
Run CI checks on PHP 8.2 (#125)
* Run CI checks on PHP 8.2 * Run PHP-CS-Fixer on PHP 8.2 * Ignore install errors to run CI * Fix static.yml file * Use psalm-5.0.0-beta1 * Try remove psalm cache * Run psqlm on PHP 8.1 Co-authored-by: Nyholm <[email protected]>
1 parent 97e1964 commit d51ff40

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
fail-fast: false
3333
matrix:
3434
package: ${{ fromJson(needs.matrix.outputs.list) }}
35-
php: [ '8.0', '8.1' ]
35+
php: [ '8.0', '8.1', '8.2' ]
3636
strategy: [ 'highest', 'lowest' ]
3737

3838
steps:

.github/workflows/static.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,23 @@ jobs:
2222
- name: Setup PHP
2323
uses: shivammathur/setup-php@v2
2424
with:
25-
php-version: 8.1
25+
php-version: 8.2
2626
coverage: none
2727
tools: phpstan:1.4.6, cs2pr
2828

2929
- name: Download dependencies
3030
uses: ramsey/composer-install@v2
31+
with:
32+
composer-options: "--ignore-platform-reqs" # required for PHP 8.2 as not yet official supported
3133

3234
- name: PHPStan
3335
run: phpstan analyze --no-progress --error-format=checkstyle | cs2pr
3436

3537
php-cs-fixer:
3638
name: PHP-CS-Fixer
3739
runs-on: ubuntu-22.04
40+
env:
41+
PHP_CS_FIXER_IGNORE_ENV: 1 # required for PHP 8.2 as not yet official supported
3842

3943
steps:
4044
- name: Checkout code
@@ -50,7 +54,7 @@ jobs:
5054
- name: Setup PHP
5155
uses: shivammathur/setup-php@v2
5256
with:
53-
php-version: 8.1
57+
php-version: 8.2
5458
coverage: none
5559
tools: php-cs-fixer:3.11.0, cs2pr
5660

@@ -76,10 +80,12 @@ jobs:
7680
with:
7781
php-version: 8.1
7882
coverage: none
79-
tools: vimeo/psalm:4.23.0
83+
tools: vimeo/psalm:5.0.0-beta1
8084

8185
- name: Download dependencies
8286
uses: ramsey/composer-install@v2
87+
with:
88+
composer-options: "--ignore-platform-reqs" # required for PHP 8.2 as not yet official supported
8389

8490
- name: Psalm
8591
run: psalm --no-progress --output-format=github
@@ -92,7 +98,7 @@ jobs:
9298
- name: Setup PHP
9399
uses: shivammathur/setup-php@v2
94100
with:
95-
php-version: 8.1
101+
php-version: 8.2
96102
coverage: none
97103
tools: composer-normalize
98104

0 commit comments

Comments
 (0)