Merge pull request #4599 from oleibman/coverage

WIP Remove Scrutinizer, Add Coveralls
This commit is contained in:
oleibman
2025-08-26 14:32:39 +00:00
committed by GitHub
2 changed files with 9 additions and 33 deletions
+9 -3
View File
@@ -250,9 +250,15 @@ jobs:
- name: Coverage
run: |
./vendor/bin/phpunit --coverage-clover coverage-clover.xml
composer global require scrutinizer/ocular
~/.composer/vendor/bin/ocular code-coverage:upload --format=php-clover coverage-clover.xml
./vendor/bin/phpunit --coverage-clover build/clover.xml
- name: Upload coverage results to Coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
wget https://github.com/php-coveralls/php-coveralls/releases/download/v2.4.3/php-coveralls.phar
chmod +x php-coveralls.phar
php php-coveralls.phar --coverage_clover=build/clover.xml --json_path=build/coveralls-upload.json -vvv
release:
permissions:
-30
View File
@@ -1,30 +0,0 @@
checks:
php: true
coding_style:
php:
spaces:
before_parentheses:
closure_definition: true
around_operators:
concatenation: true
build:
nodes:
analysis:
image: default-bionic
environment:
php: 8.2
tests:
override:
- php-scrutinizer-run
tools:
external_code_coverage:
timeout: 600
build_failure_conditions:
- 'elements.rating(<= D).new.exists' # No new classes/methods with a rating of D or worse allowed
- 'issues.severity(>= MAJOR).new.exists' # New issues of major or higher severity
- 'project.metric_change("scrutinizer.test_coverage", < 0)' # Code Coverage decreased from previous inspection
- 'patches.label("Unused Use Statements").new.exists' # No new unused imports patches allowed