Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Misc #158

Merged
merged 2 commits into from
May 21, 2024
Merged

Misc #158

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading