File tree Expand file tree Collapse file tree 8 files changed +271
-257
lines changed
Expand file tree Collapse file tree 8 files changed +271
-257
lines changed Original file line number Diff line number Diff line change 1+ name : PHPStan level 5
2+ on : push
3+ jobs :
4+ phpstan :
5+ runs-on : ubuntu-latest
6+ steps :
7+ - uses : actions/checkout@v3
8+ - uses : actions/cache@v3
9+ with :
10+ path : ' **/vendor'
11+ key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
12+ restore-keys : |
13+ ${{ runner.os }}-composer-
14+ - uses : php-actions/composer@v6
15+ with :
16+ args : --prefer-dist
17+ php_version : ' 8.2'
18+
19+ - name : PHPStan
20+ uses : php-actions/phpstan@v3
21+ with :
22+ path : src/
23+ level : 5
24+ php_version : ' 8.2'
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 functional --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 1- name : Quality (PHPStan lvl 5 )
1+ name : Quality (PHPStan lvl 4 )
22on : push
33jobs :
44 cs-fixer :
1616 chmod a+x php-cs-fixer
1717 PHP_CS_FIXER_IGNORE_ENV=true ./php-cs-fixer fix src --dry-run
1818
19- phpunit :
20- runs-on : ubuntu-latest
21- steps :
22- - uses : actions/checkout@v3
23- - uses : shivammathur/setup-php@v2
24- with :
25- php-version : ' 8.2'
26- tools : composer:v2
27- coverage : pcov
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-
39- - name : Run tests & generate Coverage
40- run : bin/phpunit --configuration=phpunit.xml tests --coverage-html var/coverage --whitelist=src
41-
42- - name : Store coverage files
43- uses : actions/upload-artifact@v3
44- with :
45- path : var/coverage
46-
4719 phpstan :
4820 runs-on : ubuntu-latest
4921 steps :
6335 uses : php-actions/phpstan@v3
6436 with :
6537 path : src/
66- level : 5
38+ level : 4
6739 php_version : ' 8.2'
Original file line number Diff line number Diff line change 1+ Pipeline Console Runtime
2+ ===
3+
4+
5+ [ ![ Quality] ( https://github.com/php-etl/pipeline/actions/workflows/quality.yaml/badge.svg )] ( https://github.com/php-etl/pipeline/actions/workflows/quality.yaml )
6+ [ ![ PHPUnit] ( https://github.com/php-etl/pipeline/actions/workflows/phpunit.yaml/badge.svg )] ( https://github.com/php-etl/pipeline/actions/workflows/phpunit.yaml )
7+ [ ![ Mutations] ( https://github.com/php-etl/pipeline/actions/workflows/infection.yaml/badge.svg )] ( https://github.com/php-etl/pipeline/actions/workflows/infection.yaml )
8+ [ ![ PHPStan level 5] ( https://github.com/php-etl/pipeline/actions/workflows/phpstan-5.yaml/badge.svg )] ( https://github.com/php-etl/pipeline/actions/workflows/phpstan-5.yaml )
9+ [ ![ PHPStan level 5] ( https://github.com/php-etl/pipeline/actions/workflows/phpstan-6.yaml/badge.svg )] ( https://github.com/php-etl/pipeline/actions/workflows/phpstan-6.yaml )
10+ [ ![ PHPStan level 7] ( https://github.com/php-etl/pipeline/actions/workflows/phpstan-7.yaml/badge.svg )] ( https://github.com/php-etl/pipeline/actions/workflows/phpstan-7.yaml )
11+ [ ![ PHPStan level 8] ( https://github.com/php-etl/pipeline/actions/workflows/phpstan-8.yaml/badge.svg )] ( https://github.com/php-etl/pipeline/actions/workflows/phpstan-8.yaml )
12+ ![ PHP] ( https://img.shields.io/packagist/php-v/php-etl/pipeline )
13+
14+
Original file line number Diff line number Diff line change 1717 "prefer-stable" : true ,
1818 "require" : {
1919 "php" : " ^8.2" ,
20- "symfony/console" : " ^5.2" ,
20+ "symfony/console" : " ^5.2 || ^6.0 " ,
2121 "php-etl/pipeline-contracts" : " ^0.4@dev" ,
2222 "php-etl/console-state" : " ^0.2@dev"
2323 },
You can’t perform that action at this time.
0 commit comments