From b4d315a8b5fc5c376ae31b823de28b891817c9f9 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 26 Feb 2026 18:08:15 +0000 Subject: [PATCH 1/3] Initial plan From 06d47b86f49f3d7fc253eba7c4c6b7162fcd8ab4 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 26 Feb 2026 18:09:49 +0000 Subject: [PATCH 2/3] Migrate from Coveralls to Codecov for coverage reporting Co-authored-by: BenMorel <1952838+BenMorel@users.noreply.github.com> --- .github/workflows/ci.yml | 10 ++++------ README.md | 2 +- composer.json | 1 - 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c1b3578c..ee40ab88 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -86,9 +86,7 @@ jobs: if: ${{ matrix.php-version != env.COVERAGE_PHP_VERSION }} - name: Run PHPUnit with coverage - run: | - mkdir -p build/logs - vendor/bin/phpunit --coverage-clover build/logs/clover.xml + run: vendor/bin/phpunit --fail-on-skipped --coverage-clover clover.xml env: CALCULATOR: ${{ matrix.calculator }} if: ${{ matrix.php-version == env.COVERAGE_PHP_VERSION }} @@ -100,8 +98,8 @@ jobs: BCMATH_DEFAULT_SCALE: 8 if: ${{ matrix.calculator == 'BCMath' }} - - 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 e97ac5c8..bd013f83 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ A PHP library to work with arbitrary precision numbers. [![Build Status](https://github.com/brick/math/workflows/CI/badge.svg)](https://github.com/brick/math/actions) -[![Coverage Status](https://coveralls.io/repos/github/brick/math/badge.svg?branch=master)](https://coveralls.io/github/brick/math?branch=master) +[![Coverage Status](https://codecov.io/github/brick/math/graph/badge.svg)](https://codecov.io/github/brick/math) [![Latest Stable Version](https://poser.pugx.org/brick/math/v/stable)](https://packagist.org/packages/brick/math) [![Total Downloads](https://poser.pugx.org/brick/math/downloads)](https://packagist.org/packages/brick/math) [![License](https://img.shields.io/badge/license-MIT-blue.svg)](http://opensource.org/licenses/MIT) diff --git a/composer.json b/composer.json index ad1dfe07..bcacf9b5 100644 --- a/composer.json +++ b/composer.json @@ -23,7 +23,6 @@ }, "require-dev": { "phpunit/phpunit": "^11.5", - "php-coveralls/php-coveralls": "^2.2", "phpstan/phpstan": "2.1.22" }, "autoload": { From 7ce438318ecebcf33ab6f1806cf2487cdd091dea Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 26 Feb 2026 18:20:13 +0000 Subject: [PATCH 3/3] Remove --fail-on-skipped flag from PHPUnit coverage step Co-authored-by: BenMorel <1952838+BenMorel@users.noreply.github.com> --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ee40ab88..a22711b9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -86,7 +86,7 @@ jobs: if: ${{ matrix.php-version != env.COVERAGE_PHP_VERSION }} - name: Run PHPUnit with coverage - run: vendor/bin/phpunit --fail-on-skipped --coverage-clover clover.xml + run: vendor/bin/phpunit --coverage-clover clover.xml env: CALCULATOR: ${{ matrix.calculator }} if: ${{ matrix.php-version == env.COVERAGE_PHP_VERSION }}