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
2
2
on : push
3
3
jobs :
4
4
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 15
15
chmod a+x php-cs-fixer
16
16
PHP_CS_FIXER_IGNORE_ENV=true ./php-cs-fixer fix src --dry-run
17
17
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
-
44
18
phpstan :
45
19
runs-on : ubuntu-latest
46
20
steps :
Original file line number Diff line number Diff line change 9
9
runs-on : ubuntu-latest
10
10
if : github.event.pull_request.head.repo.full_name == 'php-etl/phpunit-extension'
11
11
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
18
13
19
14
-
20
15
uses : shivammathur/setup-php@v2
Original file line number Diff line number Diff line change 6
6
"php" : " ^8.2" ,
7
7
"phpunit/phpunit" : " ^10.0" ,
8
8
"nikic/php-parser" : " ^4.10" ,
9
- "php-etl/pipeline-contracts" : " ^0.3 .0" ,
9
+ "php-etl/pipeline-contracts" : " ^0.4 .0" ,
10
10
"php-http/message" : " ^1.11" ,
11
11
"php-http/mock-client" : " ^1.4@dev" ,
12
12
"fakerphp/faker" : " ^1.19" ,
15
15
},
16
16
"require-dev" : {
17
17
"phpstan/phpstan" : " ^1.10" ,
18
+ "friendsofphp/php-cs-fixer" : " ^3.0" ,
19
+ "infection/infection" : " ^0.26.18" ,
18
20
"rector/rector" : " ^0.15"
19
21
},
20
22
"license" : " MIT" ,
39
41
"config" : {
40
42
"bin-dir" : " bin" ,
41
43
"allow-plugins" : {
42
- "php-http/discovery" : true
44
+ "php-http/discovery" : true ,
45
+ "infection/extension-installer" : true
43
46
}
44
47
},
45
48
"extra" : {
You can’t perform that action at this time.
0 commit comments