File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2525
2626 steps :
2727 - name : Checkout
28- uses : actions/checkout@v2
28+ uses : actions/checkout@v2.3.4
2929
3030 - name : Install PHP
3131 uses : shivammathur/setup-php@v2
5151 restore-keys : |
5252 php${{ matrix.php }}-composer-
5353
54- - name : Install dependencies with composer
54+ - name : Install dependencies with composer php 7.4
55+ if : matrix.php == '7.4'
5556 run : composer update --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi
5657
58+ - name : Install dependencies with composer php 8.0
59+ if : matrix.php == '8.0'
60+ run : composer update --ignore-platform-reqs --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi
61+
5762 - name : Run tests with coverage
5863 if : matrix.os == 'ubuntu-latest' && matrix.php == '7.4'
5964 run : vendor/bin/phpunit --coverage-clover=coverage.clover --colors=always
Original file line number Diff line number Diff line change 2222
2323 steps :
2424 - name : Checkout
25- uses : actions/checkout@v2
25+ uses : actions/checkout@v2.3.4
2626
2727 - name : Install PHP
2828 uses : shivammathur/setup-php@v2
4949 - name : Run infection
5050 run : |
5151 git fetch --depth=1 origin $GITHUB_BASE_REF
52- vendor/bin/infection -j2 --git-diff-filter=A --git-diff-base=origin/$GITHUB_BASE_REF --logger-github --ignore-msi-with-no-mutations --only-covered
52+ vendor/bin/roave- infection-static-analysis-plugin -j2 --git-diff-filter=A --git-diff-base=origin/$GITHUB_BASE_REF --logger-github --ignore-msi-with-no-mutations --only-covered
5353 env :
5454 STRYKER_DASHBOARD_API_KEY : ${{ secrets.STRYKER_DASHBOARD_API_KEY }}
Original file line number Diff line number Diff line change @@ -7,8 +7,6 @@ name: static analysis
77jobs :
88 mutation :
99 name : PHP ${{ matrix.php }}-${{ matrix.os }}
10- env :
11- extensions : ast
1210
1311 runs-on : ${{ matrix.os }}
1412
2220
2321 steps :
2422 - name : Checkout
25- uses : actions/checkout@v2
23+ uses : actions/checkout@v2.3.4
2624
2725 - name : Install PHP
2826 uses : shivammathur/setup-php@v2
Original file line number Diff line number Diff line change 1- build :
2- environment :
3- php : " 7.4"
4- nodes :
5- analysis :
6- tests :
7- override :
8- - php-scrutinizer-run
1+ checks :
2+ php : true
3+
94filter :
105 paths :
116 - " src/*"
12- checks :
13- php : true
7+
148tools :
159 php_code_coverage :
1610 enabled : true
1711 external_code_coverage :
1812 timeout : 600
13+
14+ build :
15+ environment :
16+ php : 7.4.12
17+ nodes :
18+ analysis :
19+ tests :
20+ override :
21+ - php-scrutinizer-run
22+ dependencies :
23+ override :
24+ - composer update --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi
25+ tests :
26+ override :
27+ -
28+ command : " ./vendor/bin/phpunit --coverage-clover ./coverage.xml"
29+ on_node : 1
30+ coverage :
31+ file : coverage.xml
32+ format : php-clover
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ Security package provides a set of classes to handle common security-related tas
2121[ ![ Code coverage] ( https://scrutinizer-ci.com/g/yiisoft/security/badges/coverage.png?b=master )] ( https://scrutinizer-ci.com/g/yiisoft/security/?branch=master )
2222[ ![ Mutation testing badge] ( https://img.shields.io/endpoint?style=flat&url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2Fyiisoft%2Fsecurity%2Fmaster )] ( https://dashboard.stryker-mutator.io/reports/github.com/yiisoft/security/master )
2323[ ![ static analysis] ( https://github.com/yiisoft/security/workflows/static%20analysis/badge.svg )] ( https://github.com/yiisoft/security/actions?query=workflow%3A%22static+analysis%22 )
24-
24+ [ ![ type-coverage ] ( https://shepherd.dev/github/yiisoft/security/coverage.svg )] ( https://shepherd.dev/github/yiisoft/security )
2525
2626## Random values generation
2727
Original file line number Diff line number Diff line change 2727 "yiisoft/strings" : " ^1.0"
2828 },
2929 "require-dev" : {
30- "infection/infection" : " ^0.20.0" ,
3130 "phpunit/phpunit" : " ^9.4" ,
31+ "roave/infection-static-analysis-plugin" : " ^1.3" ,
3232 "vimeo/psalm" : " ^4.1"
3333 },
3434 "autoload" : {
You can’t perform that action at this time.
0 commit comments