File tree 3 files changed +14
-4
lines changed
3 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -22,10 +22,17 @@ jobs:
22
22
with :
23
23
php-version : ${{ matrix.php }}
24
24
tools : composer:v2
25
- coverage : none
25
+ coverage : xdebug
26
26
27
27
- name : Install PHP dependencies
28
28
run : composer update --${{ matrix.dependency-version }} --no-interaction --no-progress --ansi
29
29
30
30
- name : Unit Tests
31
- run : composer test:unit
31
+ run : composer test:unit -- --coverage-clover ./coverage.xml
32
+
33
+ - name : Upload coverage reports to Codecov
34
+
35
+ with :
36
+ token : ${{ secrets.CODECOV_TOKEN }}
37
+ files : ./coverage.xml
38
+ verbose : true
Original file line number Diff line number Diff line change 3
3
This plugin afford math related expectations.
4
4
5
5
6
- [ ![ Tests] ( https://github.com/faissaloux/pest-plugin-math/actions/workflows/tests.yml/badge.svg )] ( https://github.com/faissaloux/pest-plugin-math/actions/workflows/tests.yml ) ![ Packagist Version] ( https://img.shields.io/packagist/v/faissaloux/pest-plugin-math ) ![ Packagist License] ( https://img.shields.io/packagist/l/faissaloux/pest-plugin-math )
6
+ [ ![ Tests] ( https://github.com/faissaloux/pest-plugin-math/actions/workflows/tests.yml/badge.svg )] ( https://github.com/faissaloux/pest-plugin-math/actions/workflows/tests.yml ) ![ Codecov ] ( https://img.shields.io/codecov/c/github/faissaloux/pest-plugin-math ) ![ Packagist Version] ( https://img.shields.io/packagist/v/faissaloux/pest-plugin-math ) ![ Packagist License] ( https://img.shields.io/packagist/l/faissaloux/pest-plugin-math )
7
7
8
8
9
9
#### ` toBeDivisibleBy() `
Original file line number Diff line number Diff line change 55
55
"test:refactor" : " rector --dry-run" ,
56
56
"test:lint" : " pint --test" ,
57
57
"test:types" : " phpstan analyse --ansi" ,
58
- "test:unit" : " pest --colors=always" ,
58
+ "test:unit" : [
59
+ " @putenv XDEBUG_MODE=coverage" ,
60
+ " pest --coverage --colors=always -v"
61
+ ],
59
62
"test" : [
60
63
" @test:refactor" ,
61
64
" @test:lint" ,
You can’t perform that action at this time.
0 commit comments