File tree Expand file tree Collapse file tree 5 files changed +61
-61
lines changed
Expand file tree Collapse file tree 5 files changed +61
-61
lines changed 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+ extensions : zip, xdebug
14+ - uses : actions/cache@v3
15+ with :
16+ path : ' **/vendor'
17+ key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
18+ restore-keys : |
19+ ${{ runner.os }}-composer-
20+ - uses : php-actions/composer@v6
21+ with :
22+ args : --prefer-dist
23+ php_version : ' 8.2'
24+ php_extensions : zip xdebug
25+ - name : Run tests & generate Coverage
26+ run : bin/phpunit --coverage-html var/coverage
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- extensions : zip, xdebug
28- - uses : actions/cache@v3
29- with :
30- path : ' **/vendor'
31- key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
32- restore-keys : |
33- ${{ runner.os }}-composer-
34- - uses : php-actions/composer@v6
35- with :
36- args : --prefer-dist
37- php_version : ' 8.2'
38- php_extensions : zip xdebug
39- - name : Run tests & generate Coverage
40- run : bin/phpunit --coverage-html var/coverage
41- - name : Store coverage files
42- uses : actions/upload-artifact@v3
43- with :
44- path : var/coverage
45-
4618 phpstan :
4719 runs-on : ubuntu-latest
4820 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/spreadsheet-flow'
1111 steps :
12- -
13- if : github.event.pull_request.head.repo.full_name == github.repository
14- uses : actions/checkout@v3
12+ - uses : actions/checkout@v3
1513
1614 -
1715 uses : shivammathur/setup-php@v2
Original file line number Diff line number Diff line change 2828 "ext-dom" : " *" ,
2929 "ext-xmlreader" : " *" ,
3030 "ext-simplexml" : " *" ,
31- "php-etl/bucket" : " ^0.3.0 " ,
31+ "php-etl/bucket" : " * " ,
3232 "box/spout" : " ^3.1" ,
33- "php-etl/pipeline-contracts" : " ^ 0.4.0" ,
33+ "php-etl/pipeline-contracts" : " 0.4.0" ,
3434 "psr/log" : " ^3.0"
3535 },
3636 "require-dev" : {
3939 "friendsofphp/php-cs-fixer" : " ^3.0" ,
4040 "infection/infection" : " ^0.26.18" ,
4141 "rector/rector" : " ^0.15.23" ,
42- "php-etl/phpunit-extension" : " ^0.5.0 "
42+ "php-etl/phpunit-extension" : " * "
4343 },
4444 "autoload" : {
4545 "psr-4" : {
You can’t perform that action at this time.
0 commit comments