Simplify and improve how code coverage is generated in API and CLI tests

This commit is contained in:
Alejandro Celaya
2024-02-20 18:23:37 +01:00
parent a463e6f9d7
commit 8f6fc97fc8
6 changed files with 22 additions and 55 deletions

View File

@@ -133,10 +133,9 @@ jobs:
- run: mv build/coverage-db/coverage-db.cov build/coverage-db.cov
- run: mv build/coverage-api/coverage-api.cov build/coverage-api.cov
- run: mv build/coverage-cli/coverage-cli.cov build/coverage-cli.cov
- run: wget https://phar.phpunit.de/phpcov-10.0.0.phar
- run: php phpcov-10.0.0.phar merge build --clover build/clover.xml
- run: vendor/bin/phpcov merge build --clover build/clover.xml
- name: Publish coverage
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v4
with:
file: ./build/clover.xml