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' }}
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
105+ # AST 1.1 binary for Windows seems to be missing on PECL
106+ - name : Run phan with polyfill
107+ if : ${{ matrix.os == 'windows-latest' }}
108+ run : vendor/bin/phan --allow-polyfill-parser
101109 - name : Upload coverage to Codecov
102110 uses : codecov/codecov-action@v3
103111 with :
0 commit comments