File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -24,12 +24,16 @@ jobs:
24
24
- ' 8.1'
25
25
dependencies :
26
26
- ' highest'
27
+ phpunit-args :
28
+ - ' '
27
29
include :
28
30
- php-version : ' 7.2'
29
31
dependencies : ' lowest'
30
32
- php-version : ' 8.1'
31
33
dependencies : ' lowest'
32
34
- php-version : ' 8.1'
35
+ coverage : ' pcov'
36
+ phpunit-args : ' --coverage-clover coverage.xml'
33
37
34
38
steps :
35
39
# Cancel previous runs of the same branch
@@ -46,14 +50,15 @@ jobs:
46
50
with :
47
51
php-version : ' ${{ matrix.php-version }}'
48
52
tools : composer:v2
53
+ coverage : ' ${{ matrix.coverage }}'
49
54
50
55
- name : Install dependencies with Composer
51
56
uses : ramsey/composer-install@v1
52
57
with :
53
58
dependency-versions : ' ${{ matrix.dependencies }}'
54
59
55
60
- name : Run PHPUnit
56
- run : vendor/bin/phpunit
61
+ run : vendor/bin/phpunit ${{ matrix.phpunit-args }}
57
62
58
63
- name : Validate composer
59
64
run : composer validate --strict --no-check-lock
75
80
- name : Run php_codesniffer
76
81
run : composer cs-check
77
82
if : ${{ matrix.php-version == '7.2' }} # Do not suggest using features after 7.2
83
+
84
+ - name : Upload coverage results to Coveralls
85
+ run : vendor/bin/php-coveralls --coverage_clover=coverage.xml -v
86
+ if : ${{ matrix.coverage }}
87
+ env :
88
+ COVERALLS_REPO_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments