Skip to content

Commit 31738d6

Browse files
committed
remove coverage github comment
1 parent 202ba2e commit 31738d6

File tree

1 file changed

+2
-33
lines changed

1 file changed

+2
-33
lines changed

.github/workflows/coverage-report.yml

Lines changed: 2 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ name: Coverage Report
33
on:
44
push:
55
branches: [ development ]
6-
pull_request:
7-
branches: [ development ]
86

97
jobs:
108
coverage:
@@ -28,38 +26,9 @@ jobs:
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/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
6030

61-
- if: ${{ github.event_name != 'pull_request' }}
62-
name: Make Coverage Badge
31+
- name: Make Coverage Badge
6332
uses: action-badges/cobertura-coverage-xml-badges@0.3.0
6433
with:
6534
file-name: coverage.svg

0 commit comments

Comments
 (0)