-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #158 from Sysix/misc
Misc
- Loading branch information
Showing
2 changed files
with
7 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,6 @@ name: Coverage Report | |
on: | ||
push: | ||
branches: [ development ] | ||
pull_request: | ||
branches: [ development ] | ||
|
||
jobs: | ||
coverage: | ||
|
@@ -28,38 +26,9 @@ jobs: | |
composer install --prefer-dist | ||
- name: Execute tests with coverage | ||
run: vendor/bin/phpunit --configuration 'phpunit.xml' --coverage-clover=coverage.xml --coverage-cobertura=coverage-cobertura.xml | ||
|
||
- if: ${{ github.event_name == 'pull_request' }} | ||
name: Download artifact | ||
uses: dawidd6/action-download-artifact@v3 | ||
continue-on-error: true | ||
with: | ||
workflow: .github/workflows/coverage-report.yml | ||
branch: development | ||
name: coverage-report | ||
path: tests/base | ||
|
||
- if: ${{ github.event_name != 'pull_request' }} | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: coverage-report | ||
path: coverage.xml | ||
|
||
- if: ${{ github.event_name == 'pull_request' }} | ||
name: Coverage Report as Comment (Clover) | ||
uses: lucassabreu/comment-coverage-clover@main | ||
with: | ||
file: coverage.xml | ||
base-file: test/base/coverage.xml | ||
|
||
- if: ${{ github.event_name != 'pull_request' }} | ||
uses: action-badges/[email protected] | ||
with: | ||
branch-name: badges | ||
run: vendor/bin/phpunit --configuration 'phpunit.xml' --coverage-cobertura=coverage-cobertura.xml | ||
|
||
- if: ${{ github.event_name != 'pull_request' }} | ||
name: Make Coverage Badge | ||
- name: Make Coverage Badge | ||
uses: action-badges/[email protected] | ||
with: | ||
file-name: coverage.svg | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters