File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed
Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 4444 - 7.3
4545 - 7.4
4646 - 8.0
47+ - 8.1
4748 dependencies_level :
4849 - --prefer-lowest
4950 - " "
@@ -73,17 +74,20 @@ jobs:
7374 key : " cache-composer-${{ hashFiles('composer.json') }}"
7475 restore-keys : ' cache-composer-'
7576 - name : Run composer
76- if : ${{ matrix.php_version != '8.0' }}
77+ if : ${{ matrix.php_version != '8.0' && matrix.php_version != '8.1' }}
7778 run : composer update ${{ matrix.dependencies_level }} --prefer-dist --no-interaction --no-progress
7879 - name : Run composer with workaround for PHP 8 and incompatible PHPUnit
79- if : ${{ matrix.php_version == '8.0' }}
80+ if : ${{ matrix.php_version == '8.0' || matrix.php_version == '8.1' }}
8081 run : composer update ${{ matrix.dependencies_level }} --ignore-platform-reqs --prefer-dist --no-interaction --no-progress
8182 - name : Run tests with coverage
82- if : ${{ matrix.php_version != '8.0' }}
83+ if : ${{ matrix.php_version != '8.0' && matrix.php_version != '8.1' }}
8384 run : php vendor/bin/phpunit --coverage-clover=coverage.xml
8485 - name : Run tests
8586 if : ${{ matrix.php_version == '8.0' }}
8687 run : vendor/bin/phpunit
88+ - name : Run tests
89+ if : ${{ matrix.php_version == '8.1' }}
90+ run : vendor/bin/phpunit --no-configuration --bootstrap=tests/bootstrap.php --dont-report-useless-tests vendor/squizlabs/php_codesniffer/tests/Standards/AllSniffs.php
8791 - name : Run integration tests
8892 run : vendor/bin/phpcs -s --standard=MO4 integrationtests/testfile.php
8993 - name : Run PHPStan
Original file line number Diff line number Diff line change 2323 },
2424 "require-dev" : {
2525 "phan/phan" : " ^5.1.0" ,
26- "phpstan/phpstan" : " ^1.0.0 " ,
27- "phpstan/phpstan-strict-rules" : " ^1.0.0 " ,
26+ "phpstan/phpstan" : " ^1.0" ,
27+ "phpstan/phpstan-strict-rules" : " ^1.0" ,
2828 "phpunit/phpunit" : " ^7.0" ,
2929 "psalm/plugin-phpunit" : " ^0.16.1" ,
3030 "vimeo/psalm" : " ^4.5.2"
3434 "dealerdirect/phpcodesniffer-composer-installer" : " ~0.7" ,
3535 "escapestudios/symfony2-coding-standard" : " ^3.10.0" ,
3636 "slevomat/coding-standard" : " ^7.0.1" ,
37- "squizlabs/php_codesniffer" : " ^3.6.0 "
37+ "squizlabs/php_codesniffer" : " ^3.6.2 "
3838 }
3939}
You can’t perform that action at this time.
0 commit comments