diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a85b06b..473a447 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,7 +34,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 @@ -46,15 +46,13 @@ 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 }} psalm: diff --git a/README.md b/README.md index f15cce3..1e2a4f9 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ Brick\DateTime A powerful set of immutable classes to work with dates and times. [![Build Status](https://github.com/brick/date-time/workflows/Tests/badge.svg)](https://github.com/brick/date-time/actions) -[![Coverage Status](https://coveralls.io/repos/github/brick/date-time/badge.svg?branch=master)](https://coveralls.io/github/brick/date-time?branch=master) +[![Coverage Status](https://codecov.io/github/brick/date-time/graph/badge.svg)](https://codecov.io/github/brick/date-time) [![Latest Stable Version](https://poser.pugx.org/brick/date-time/v/stable)](https://packagist.org/packages/brick/date-time) [![Total Downloads](https://poser.pugx.org/brick/date-time/downloads)](https://packagist.org/packages/brick/date-time) [![License](https://img.shields.io/badge/license-MIT-blue.svg)](http://opensource.org/licenses/MIT) diff --git a/composer.json b/composer.json index 875dfe5..6c788ad 100644 --- a/composer.json +++ b/composer.json @@ -32,7 +32,6 @@ }, "require-dev": { "phpunit/phpunit": "^11.0", - "php-coveralls/php-coveralls": "^2.2", "guzzlehttp/guzzle": "^7.0" }, "suggest": {