Skip to content

Commit

Permalink
fix Scrutinizer code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
1ma committed Sep 24, 2023
1 parent cb70f58 commit 56eaede
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 19 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ jobs:
- run: composer install
- run: php vendor/bin/php-cs-fixer fix --dry-run -v
- run: composer test
- if: ${{ always() }}
run: php vendor/bin/ocular code-coverage:upload --format=php-clover build/coverage.xml
23 changes: 5 additions & 18 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,12 @@ filter:
- 'tests/'
dependency_paths:
- 'vendor/'

checks:
php: true

coding_style:
php: { }
build:
nodes:
analysis:
project_setup:
override: true
tests:
override:
- php-scrutinizer-run --enable-security-analysis
testing:
environment:
php: '8.2'
tests:
override:
-
command: composer test
coverage:
file: build/coverage.xml
format: php-clover

tools:
external_code_coverage: true
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.28",
"phpbench/phpbench": "^1.0",
"phpunit/phpunit": "^10.3"
"phpunit/phpunit": "^10.3",
"scrutinizer/ocular": "^1.9"
},
"autoload": {
"psr-4": {
Expand Down

0 comments on commit 56eaede

Please sign in to comment.