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 44
44
- 7.3
45
45
- 7.4
46
46
- 8.0
47
+ - 8.1
47
48
dependencies_level :
48
49
- --prefer-lowest
49
50
- " "
@@ -73,17 +74,20 @@ jobs:
73
74
key : " cache-composer-${{ hashFiles('composer.json') }}"
74
75
restore-keys : ' cache-composer-'
75
76
- name : Run composer
76
- if : ${{ matrix.php_version != '8.0' }}
77
+ if : ${{ matrix.php_version != '8.0' && matrix.php_version != '8.1' }}
77
78
run : composer update ${{ matrix.dependencies_level }} --prefer-dist --no-interaction --no-progress
78
79
- 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' }}
80
81
run : composer update ${{ matrix.dependencies_level }} --ignore-platform-reqs --prefer-dist --no-interaction --no-progress
81
82
- name : Run tests with coverage
82
- if : ${{ matrix.php_version != '8.0' }}
83
+ if : ${{ matrix.php_version != '8.0' && matrix.php_version != '8.1' }}
83
84
run : php vendor/bin/phpunit --coverage-clover=coverage.xml
84
85
- name : Run tests
85
86
if : ${{ matrix.php_version == '8.0' }}
86
87
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
87
91
- name : Run integration tests
88
92
run : vendor/bin/phpcs -s --standard=MO4 integrationtests/testfile.php
89
93
- name : Run PHPStan
Original file line number Diff line number Diff line change 23
23
},
24
24
"require-dev" : {
25
25
"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" ,
28
28
"phpunit/phpunit" : " ^7.0" ,
29
29
"psalm/plugin-phpunit" : " ^0.16.1" ,
30
30
"vimeo/psalm" : " ^4.5.2"
34
34
"dealerdirect/phpcodesniffer-composer-installer" : " ~0.7" ,
35
35
"escapestudios/symfony2-coding-standard" : " ^3.10.0" ,
36
36
"slevomat/coding-standard" : " ^7.0.1" ,
37
- "squizlabs/php_codesniffer" : " ^3.6.0 "
37
+ "squizlabs/php_codesniffer" : " ^3.6.2 "
38
38
}
39
39
}
You can’t perform that action at this time.
0 commit comments