File tree Expand file tree Collapse file tree 6 files changed +2766
-123
lines changed
Expand file tree Collapse file tree 6 files changed +2766
-123
lines changed Original file line number Diff line number Diff line change 1- name : PHPStan level 5
1+ name : PHPStan level 6
22on : push
33jobs :
44 phpstan :
Original file line number Diff line number Diff line change 1+ name : PHPUnit
2+ on : push
3+ jobs :
4+ phpunit :
5+ runs-on : ubuntu-latest
6+ steps :
7+ - uses : actions/checkout@v3
8+ - uses : shivammathur/setup-php@v2
9+ with :
10+ php-version : ' 8.2'
11+ tools : composer:v2
12+ coverage : pcov
13+ - uses : actions/cache@v3
14+ with :
15+ path : ' **/vendor'
16+ key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
17+ restore-keys : |
18+ ${{ runner.os }}-composer-
19+ - uses : php-actions/composer@v6
20+ with :
21+ args : --prefer-dist
22+ php_version : ' 8.2'
23+
24+ - name : Run tests & generate Coverage
25+ run : bin/phpunit --coverage-html var/coverage
26+
27+ - name : Store coverage files
28+ uses : actions/upload-artifact@v3
29+ with :
30+ path : var/coverage
Original file line number Diff line number Diff line change 1515 chmod a+x php-cs-fixer
1616 PHP_CS_FIXER_IGNORE_ENV=true ./php-cs-fixer fix src --dry-run
1717
18- phpunit :
19- runs-on : ubuntu-latest
20- steps :
21- - uses : actions/checkout@v3
22- - uses : shivammathur/setup-php@v2
23- with :
24- php-version : ' 8.2'
25- tools : composer:v2
26- coverage : pcov
27- - uses : actions/cache@v3
28- with :
29- path : ' **/vendor'
30- key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
31- restore-keys : |
32- ${{ runner.os }}-composer-
33- - uses : php-actions/composer@v6
34- with :
35- args : --prefer-dist
36- php_version : ' 8.2'
37- - name : Run tests & generate Coverage
38- run : bin/phpunit --configuration=phpunit.xml tests --coverage-html var/coverage
39- - name : Store coverage files
40- uses : actions/upload-artifact@v3
41- with :
42- path : var/coverage
43-
4418 phpstan :
4519 runs-on : ubuntu-latest
4620 steps :
Original file line number Diff line number Diff line change 99 runs-on : ubuntu-latest
1010 if : github.event.pull_request.head.repo.full_name == 'php-etl/phpunit-extension'
1111 steps :
12- -
13- if : github.event.pull_request.head.repo.full_name == github.repository
14- uses : actions/checkout@v3
15- with :
16- # Must be used to trigger workflow after push
17- token : ${{ secrets.ACCESS_TOKEN }}
12+ - uses : actions/checkout@v3
1813
1914 -
2015 uses : shivammathur/setup-php@v2
Original file line number Diff line number Diff line change 66 "php" : " ^8.2" ,
77 "phpunit/phpunit" : " ^10.0" ,
88 "nikic/php-parser" : " ^4.10" ,
9- "php-etl/pipeline-contracts" : " ^0.3 .0" ,
9+ "php-etl/pipeline-contracts" : " ^0.4 .0" ,
1010 "php-http/message" : " ^1.11" ,
1111 "php-http/mock-client" : " ^1.4@dev" ,
1212 "fakerphp/faker" : " ^1.19" ,
1515 },
1616 "require-dev" : {
1717 "phpstan/phpstan" : " ^1.10" ,
18+ "friendsofphp/php-cs-fixer" : " ^3.0" ,
19+ "infection/infection" : " ^0.26.18" ,
1820 "rector/rector" : " ^0.15"
1921 },
2022 "license" : " MIT" ,
3941 "config" : {
4042 "bin-dir" : " bin" ,
4143 "allow-plugins" : {
42- "php-http/discovery" : true
44+ "php-http/discovery" : true ,
45+ "infection/extension-installer" : true
4346 }
4447 },
4548 "extra" : {
You can’t perform that action at this time.
0 commit comments