File tree 2 files changed +7
-38
lines changed
2 files changed +7
-38
lines changed Original file line number Diff line number Diff line change @@ -3,8 +3,6 @@ name: Coverage Report
3
3
on :
4
4
push :
5
5
branches : [ development ]
6
- pull_request :
7
- branches : [ development ]
8
6
9
7
jobs :
10
8
coverage :
28
26
composer install --prefer-dist
29
27
30
28
- name : Execute tests with coverage
31
- run : vendor/bin/phpunit --configuration 'phpunit.xml' --coverage-clover=coverage.xml --coverage-cobertura=coverage-cobertura.xml
32
-
33
- - if : ${{ github.event_name == 'pull_request' }}
34
- name : Download artifact
35
- uses : dawidd6/action-download-artifact@v3
36
- continue-on-error : true
37
- with :
38
- workflow : .github/workflows/coverage-report.yml
39
- branch : development
40
- name : coverage-report
41
- path : tests/base
42
-
43
- - if : ${{ github.event_name != 'pull_request' }}
44
- uses : actions/upload-artifact@v2
45
- with :
46
- name : coverage-report
47
- path : coverage.xml
48
-
49
- - if : ${{ github.event_name == 'pull_request' }}
50
- name : Coverage Report as Comment (Clover)
51
- uses : lucassabreu/comment-coverage-clover@main
52
- with :
53
- file : coverage.xml
54
- base-file : test/base/coverage.xml
55
-
56
- - if : ${{ github.event_name != 'pull_request' }}
57
- uses : action-badges/create-orphan-branch@0.1.1
58
- with :
59
- branch-name : badges
29
+ run : vendor/bin/phpunit --configuration 'phpunit.xml' --coverage-cobertura=coverage-cobertura.xml
60
30
61
- - if : ${{ github.event_name != 'pull_request' }}
62
- name : Make Coverage Badge
31
+ - name : Make Coverage Badge
63
32
uses : action-badges/cobertura-coverage-xml-badges@0.3.0
64
33
with :
65
34
file-name : coverage.svg
Original file line number Diff line number Diff line change 23
23
"guzzlehttp/psr7" : " ^2.0"
24
24
},
25
25
"require-dev" : {
26
- "phpstan/phpstan" : " ^1.10 " ,
27
- "phpunit/phpunit" : " ^10.4 " ,
26
+ "phpstan/phpstan" : " ^1.11 " ,
27
+ "phpunit/phpunit" : " ^10.5 " ,
28
28
"guzzlehttp/guzzle" : " ^7.8" ,
29
- "friendsofphp/php-cs-fixer" : " ^3.41 " ,
30
- "vimeo/psalm" : " ^5.18 " ,
31
- "psalm/plugin-phpunit" : " ^0.18.4 "
29
+ "friendsofphp/php-cs-fixer" : " ^3.57 " ,
30
+ "vimeo/psalm" : " ^5.24 " ,
31
+ "psalm/plugin-phpunit" : " ^0.19 "
32
32
},
33
33
"suggest" : {
34
34
"guzzlehttp/guzzle" : " ^7.0" ,
You can’t perform that action at this time.
0 commit comments