45
45
- 7.4
46
46
- 8.0
47
47
- 8.1
48
+ - 8.2
49
+ - 8.3
48
50
dependencies_level :
49
51
- --prefer-lowest
50
52
- " "
@@ -66,23 +68,23 @@ jobs:
66
68
with :
67
69
coverage : ' xdebug'
68
70
php-version : ${{ matrix.php_version }}
69
- extensions : ast-1.0.14
71
+ extensions : ast-1.1.1
70
72
- name : Cache dependencies
71
73
uses : actions/cache@v3
72
74
with :
73
75
path : ' ~/.cache/composer'
74
76
key : " cache-composer-${{ hashFiles('composer.json') }}"
75
77
restore-keys : ' cache-composer-'
76
78
- 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' }}
78
80
run : composer update ${{ matrix.dependencies_level }} --prefer-dist --no-interaction --no-progress
79
81
- 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' }}
81
83
run : composer update ${{ matrix.dependencies_level }} --ignore-platform-reqs --prefer-dist --no-interaction --no-progress
82
84
- name : Check composer.json
83
85
run : composer normalize --dry-run
84
86
- 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' }}
86
88
run : php vendor/bin/phpunit --coverage-clover=coverage.xml
87
89
- name : Run tests
88
90
if : ${{ matrix.php_version == '8.0' }}
95
97
- name : Run PHPStan
96
98
run : vendor/bin/phpstan analyse --no-progress
97
99
- name : Run psalm
100
+ if : ${{ matrix.os != 'windows-latest' }}
98
101
run : vendor/bin/psalm --show-info=true
99
102
- name : Run phan
103
+ if : ${{ matrix.os != 'windows-latest' }}
100
104
run : vendor/bin/phan
101
105
- name : Upload coverage to Codecov
102
106
uses : codecov/codecov-action@v3
0 commit comments