diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1c8afb8..db025c6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -60,7 +60,7 @@ jobs: uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php-version }} - coverage: xdebug + coverage: pcov - name: Install composer dependencies uses: ramsey/composer-install@v3 @@ -72,13 +72,11 @@ jobs: if: ${{ matrix.php-version != env.COVERAGE_PHP_VERSION }} - name: Run PHPUnit with coverage - run: | - mkdir -p mkdir -p build/logs - vendor/bin/phpunit --coverage-clover build/logs/clover.xml + run: vendor/bin/phpunit --coverage-clover clover.xml if: ${{ matrix.php-version == env.COVERAGE_PHP_VERSION }} - - name: Upload coverage report to Coveralls - run: vendor/bin/php-coveralls --coverage_clover=build/logs/clover.xml -v + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v5 env: - COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} if: ${{ matrix.php-version == env.COVERAGE_PHP_VERSION }} diff --git a/README.md b/README.md index acb2571..d7c1ed1 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ A collection of low-level tools to extend PHP reflection capabilities. [![Build Status](https://github.com/brick/reflection/workflows/CI/badge.svg)](https://github.com/brick/reflection/actions) -[![Coverage Status](https://coveralls.io/repos/github/brick/reflection/badge.svg?branch=master)](https://coveralls.io/github/brick/reflection?branch=master) +[![Coverage Status](https://codecov.io/github/brick/reflection/graph/badge.svg)](https://codecov.io/github/brick/reflection) [![Latest Stable Version](https://poser.pugx.org/brick/reflection/v/stable)](https://packagist.org/packages/brick/reflection) [![Total Downloads](https://poser.pugx.org/brick/reflection/downloads)](https://packagist.org/packages/brick/reflection) [![License](https://img.shields.io/badge/license-MIT-blue.svg)](http://opensource.org/licenses/MIT) diff --git a/composer.json b/composer.json index 58d2f8f..8d6003c 100644 --- a/composer.json +++ b/composer.json @@ -13,7 +13,6 @@ }, "require-dev": { "phpunit/phpunit": "^10.5", - "php-coveralls/php-coveralls": "^2.0", "vimeo/psalm": "6.13.1" }, "autoload": {