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

Fix coverage report workflow #12

Merged
merged 1 commit into from
Mar 2, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/coverage-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@v2
with:
php-version: 7.4
php-version: 8.0
extensions: mbstring, dom, json, libxml, xml, xmlwriter
coverage: pcov
- name: Install dependencies
run: composer install --no-progress --no-suggest --prefer-dist --optimize-autoloader
- name: Run test suite
run: "composer coverage:clover"
- name: Download Scrutinizer Ocular
run: wget https://scrutinizer-ci.com/ocular.phar
- name: Upload coverage report
run: php ocular.phar code-coverage:upload --format=php-clover clover.xml
run: vendor/bin/ocular code-coverage:upload --format=php-clover clover.xml
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.buildpath
clover.xml
composer.lock
composer.phar
.php.cs.cache
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
"require-dev" : {
"phpunit/phpunit" : "^9.0",
"phootwork/php-cs-fixer-config": "^0.3",
"psalm/phar": "^4.3"
"psalm/phar": "^4.3",
"scrutinizer/ocular": "^1.8"
},
"scripts": {
"analytics": "vendor/bin/psalm.phar",
Expand Down