File tree Expand file tree Collapse file tree 1 file changed +2
-33
lines changed Expand file tree Collapse file tree 1 file changed +2
-33
lines changed Original file line number Diff line number Diff line change @@ -3,8 +3,6 @@ name: Coverage Report
33on :
44 push :
55 branches : [ development ]
6- pull_request :
7- branches : [ development ]
86
97jobs :
108 coverage :
2826 composer install --prefer-dist
2927
3028 - 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/[email protected] 58- with :
59- branch-name : badges
29+ run : vendor/bin/phpunit --configuration 'phpunit.xml' --coverage-cobertura=coverage-cobertura.xml
6030
61- - if : ${{ github.event_name != 'pull_request' }}
62- name : Make Coverage Badge
31+ - name : Make Coverage Badge
6332 uses :
action-badges/[email protected] 6433 with :
6534 file-name : coverage.svg
You can’t perform that action at this time.
0 commit comments