Skip to content

Commit

Permalink
Fix for github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jasny committed Aug 28, 2024
1 parent 88617f7 commit f3ede55
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@ jobs:
- name: Run PHPUnit
run: vendor/bin/phpunit ${{ matrix.coverage }}

- name: Upload coverage to Scrutinizer
- name: Upload Scrutinizer coverage
uses: sudo-bot/action-scrutinizer@latest
if: ${{ matrix.coverage }}
run: >
wget https://scrutinizer-ci.com/ocular.phar -O "/tmp/ocular.phar" &&
php "/tmp/ocular.phar" code-coverage:upload --format=php-clover /tmp/clover.xml
with:
cli-args: --format=php-clover /tmp/clover.xml

2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"lcobucci/jwt": "< 3.4"
},
"require-dev": {
"phpunit/phpunit": "^9.0",
"phpunit/phpunit": "^9.6.0",
"hashids/hashids": "^2.0 | ^3.0 | ^4.0",
"jasny/php-code-quality": "~2.7.0",
"lcobucci/jwt": "^3.4 | ^4.0"
Expand Down

0 comments on commit f3ede55

Please sign in to comment.