diff --git a/.github/workflows/test-phpunit.yml b/.github/workflows/test-phpunit.yml index db17e8c..e3e5003 100644 --- a/.github/workflows/test-phpunit.yml +++ b/.github/workflows/test-phpunit.yml @@ -79,14 +79,10 @@ jobs: run: | vendor/bin/phpcov merge --clover build/logs/clover.xml build/cov - coveralls: - needs: [main] - name: Coveralls Finished - runs-on: ubuntu-latest - steps: - - name: Upload Coveralls results - uses: coverallsapp/github-action@master - continue-on-error: true - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - parallel-finished: true + - if: matrix.php-versions == '8.1' + name: Upload coverage to Coveralls + run: | + composer global require php-coveralls/php-coveralls + php-coveralls --verbose --exclude-no-stmt --ansi + env: + COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/composer.json b/composer.json index 694ea3f..63f5ab6 100644 --- a/composer.json +++ b/composer.json @@ -78,6 +78,6 @@ "cs": "vendor/bin/php-cs-fixer fix --ansi --verbose --dry-run --diff", "rector": "vendor/bin/rector process --dry-run", "phpstan": "bash -c \"XDEBUG_MODE=off phpstan analyse\"", - "test": "vendor/bin/phpunit tests/" + "test": "vendor/bin/phpunit --coverage-text --coverage-clover build/logs/clover.xml --coverage-php build/cov/coverage.cov --testsuite main" } } diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 8e52f1c..b5bf4ce 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -46,11 +46,8 @@ - tests + src - - tests/_support -