Skip to content

Commit 835c4fd

Browse files
committed
Add PHP 8.2 & 8.3
1 parent 687a1d6 commit 835c4fd

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ jobs:
4545
- 7.4
4646
- 8.0
4747
- 8.1
48+
- 8.2
49+
- 8.3
4850
dependencies_level:
4951
- --prefer-lowest
5052
- ""
@@ -66,23 +68,23 @@ jobs:
6668
with:
6769
coverage: 'xdebug'
6870
php-version: ${{ matrix.php_version }}
69-
extensions: ast-1.0.14
71+
extensions: ast-1.1.1
7072
- name: Cache dependencies
7173
uses: actions/cache@v3
7274
with:
7375
path: '~/.cache/composer'
7476
key: "cache-composer-${{ hashFiles('composer.json') }}"
7577
restore-keys: 'cache-composer-'
7678
- name: Run composer
77-
if: ${{ matrix.php_version != '8.0' && matrix.php_version != '8.1' }}
79+
if: ${{ matrix.php_version != '8.0' && matrix.php_version != '8.1' && matrix.php_version != '8.2' && matrix.php_version != '8.3' }}
7880
run: composer update ${{ matrix.dependencies_level }} --prefer-dist --no-interaction --no-progress
7981
- name: Run composer with workaround for PHP 8 and incompatible PHPUnit
80-
if: ${{ matrix.php_version == '8.0' || matrix.php_version == '8.1' }}
82+
if: ${{ matrix.php_version == '8.0' || matrix.php_version == '8.1' || matrix.php_version == '8.2' || matrix.php_version == '8.3' }}
8183
run: composer update ${{ matrix.dependencies_level }} --ignore-platform-reqs --prefer-dist --no-interaction --no-progress
8284
- name: Check composer.json
8385
run: composer normalize --dry-run
8486
- name: Run tests with coverage
85-
if: ${{ matrix.php_version != '8.0' && matrix.php_version != '8.1' }}
87+
if: ${{ matrix.php_version != '8.0' && matrix.php_version != '8.1' && matrix.php_version != '8.2' && matrix.php_version != '8.3' }}
8688
run: php vendor/bin/phpunit --coverage-clover=coverage.xml
8789
- name: Run tests
8890
if: ${{ matrix.php_version == '8.0' }}
@@ -95,8 +97,10 @@ jobs:
9597
- name: Run PHPStan
9698
run: vendor/bin/phpstan analyse --no-progress
9799
- name: Run psalm
100+
if: ${{ matrix.os != 'windows-latest' }}
98101
run: vendor/bin/psalm --show-info=true
99102
- name: Run phan
103+
if: ${{ matrix.os != 'windows-latest' }}
100104
run: vendor/bin/phan
101105
- name: Upload coverage to Codecov
102106
uses: codecov/codecov-action@v3

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@
3131
},
3232
"require-dev": {
3333
"ergebnis/composer-normalize": ">=2.19 <2.30",
34-
"phan/phan": "^5.1.0",
34+
"phan/phan": "^5.4.2",
3535
"phpstan/phpstan": "^1.0",
3636
"phpstan/phpstan-strict-rules": "^1.0",
3737
"phpunit/phpunit": "^7.0",
38-
"psalm/plugin-phpunit": "^0.17",
39-
"vimeo/psalm": "^4.5.2"
38+
"psalm/plugin-phpunit": "^0.18",
39+
"vimeo/psalm": "^4.30"
4040
},
4141
"config": {
4242
"allow-plugins": {

0 commit comments

Comments
 (0)