@@ -22,16 +22,15 @@ jobs:
22
22
uses : shivammathur/setup-php@v2
23
23
with :
24
24
coverage : none
25
- extensions : mbstring
26
25
php-version : 7.4
27
26
28
27
- name : " Validate composer.json and composer.lock"
29
28
run : composer validate --strict
30
29
31
- - name : " Install locked dependencies with composer"
30
+ - name : " Install dependencies with composer"
32
31
run : composer install --no-interaction --no-progress
33
32
34
- - name : " Run localheinz/ composer-normalize "
33
+ - name : " Normalize composer.json "
35
34
run : composer normalize --dry-run
36
35
37
36
static-code-analysis :
@@ -47,14 +46,13 @@ jobs:
47
46
uses : shivammathur/setup-php@v2
48
47
with :
49
48
coverage : none
50
- extensions : mbstring
51
49
php-version : 7.4
52
50
53
- - name : " Install locked dependencies with composer"
51
+ - name : " Install dependencies with composer"
54
52
run : composer install --no-interaction --no-progress
55
53
56
- - name : " Run phpstan"
57
- run : vendor/bin/phpstan analyse --configuration=phpstan.neon
54
+ - name : " Run static analysis with phpstan"
55
+ run : vendor/bin/phpstan
58
56
59
57
tests :
60
58
name : Test for PHP ${{ matrix.php-version }} (${{ matrix.dependencies }})
@@ -81,13 +79,12 @@ jobs:
81
79
uses : shivammathur/setup-php@v2
82
80
with :
83
81
coverage : none
84
- extensions : mbstring
85
82
php-version : ${{ matrix.php-version }}
86
83
87
84
- name : " Install dependencies with composer"
88
85
run : composer update --${{ matrix.dependencies }} --no-interaction --no-progress
89
86
90
- - name : " Run unit tests with phpunit/phpunit "
87
+ - name : " Run unit tests with phpunit"
91
88
run : vendor/bin/phpunit
92
89
93
90
code-coverage :
@@ -103,17 +100,13 @@ jobs:
103
100
uses : shivammathur/setup-php@v2
104
101
with :
105
102
coverage : pcov
106
- extensions : mbstring
107
103
php-version : 7.4
108
104
109
- - name : " Install locked dependencies with composer"
105
+ - name : " Install dependencies with composer"
110
106
run : composer install --no-interaction --no-progress
111
107
112
- - name : " Dump Xdebug filter with phpunit/phpunit"
113
- run : vendor/bin/phpunit --dump-xdebug-filter=.build/phpunit/xdebug-filter.php
114
-
115
- - name : " Collect code coverage with Xdebug and phpunit/phpunit"
116
- run : vendor/bin/phpunit --coverage-clover=.build/logs/clover.xml --prepend=.build/phpunit/xdebug-filter.php
108
+ - name : " Collect code coverage"
109
+ run : vendor/bin/phpunit --coverage-clover=coverage.xml
117
110
118
111
- name : " Send code coverage report to codecov.io"
119
112
env :
0 commit comments