Skip to content

Commit

Permalink
Merge pull request #158 from Sysix/misc
Browse files Browse the repository at this point in the history
Misc
  • Loading branch information
Sysix authored May 21, 2024
2 parents 202ba2e + e11e746 commit 72f44b6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 38 deletions.
35 changes: 2 additions & 33 deletions .github/workflows/coverage-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ name: Coverage Report
on:
push:
branches: [ development ]
pull_request:
branches: [ development ]

jobs:
coverage:
Expand All @@ -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
Expand Down
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@
"guzzlehttp/psr7": "^2.0"
},
"require-dev": {
"phpstan/phpstan": "^1.10",
"phpunit/phpunit": "^10.4",
"phpstan/phpstan": "^1.11",
"phpunit/phpunit": "^10.5",
"guzzlehttp/guzzle": "^7.8",
"friendsofphp/php-cs-fixer": "^3.41",
"vimeo/psalm": "^5.18",
"psalm/plugin-phpunit": "^0.18.4"
"friendsofphp/php-cs-fixer": "^3.57",
"vimeo/psalm": "^5.24",
"psalm/plugin-phpunit": "^0.19"
},
"suggest": {
"guzzlehttp/guzzle": "^7.0",
Expand Down

0 comments on commit 72f44b6

Please sign in to comment.