Skip to content

Commit 363cf51

Browse files
CopilotBenMorel
andcommitted
Migrate from Coveralls to Codecov for coverage reporting
Co-authored-by: BenMorel <1952838+BenMorel@users.noreply.github.com>
1 parent 772472a commit 363cf51

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
uses: shivammathur/setup-php@v2
3535
with:
3636
php-version: ${{ matrix.php-version }}
37-
coverage: xdebug
37+
coverage: pcov
3838

3939
- name: Install composer dependencies
4040
uses: ramsey/composer-install@v3
@@ -46,15 +46,13 @@ jobs:
4646
if: ${{ matrix.php-version != env.COVERAGE_PHP_VERSION }}
4747

4848
- name: Run PHPUnit with coverage
49-
run: |
50-
mkdir -p mkdir -p build/logs
51-
vendor/bin/phpunit --coverage-clover build/logs/clover.xml
49+
run: vendor/bin/phpunit --coverage-clover clover.xml
5250
if: ${{ matrix.php-version == env.COVERAGE_PHP_VERSION }}
5351

54-
- name: Upload coverage report to Coveralls
55-
run: vendor/bin/php-coveralls --coverage_clover=build/logs/clover.xml -v
52+
- name: Upload coverage to Codecov
53+
uses: codecov/codecov-action@v5
5654
env:
57-
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
55+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
5856
if: ${{ matrix.php-version == env.COVERAGE_PHP_VERSION }}
5957

6058
psalm:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Brick\DateTime
66
A powerful set of immutable classes to work with dates and times.
77

88
[![Build Status](https://github.com/brick/date-time/workflows/Tests/badge.svg)](https://github.com/brick/date-time/actions)
9-
[![Coverage Status](https://coveralls.io/repos/github/brick/date-time/badge.svg?branch=master)](https://coveralls.io/github/brick/date-time?branch=master)
9+
[![Coverage Status](https://codecov.io/github/brick/date-time/graph/badge.svg)](https://codecov.io/github/brick/date-time)
1010
[![Latest Stable Version](https://poser.pugx.org/brick/date-time/v/stable)](https://packagist.org/packages/brick/date-time)
1111
[![Total Downloads](https://poser.pugx.org/brick/date-time/downloads)](https://packagist.org/packages/brick/date-time)
1212
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](http://opensource.org/licenses/MIT)

composer.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
},
3333
"require-dev": {
3434
"phpunit/phpunit": "^11.0",
35-
"php-coveralls/php-coveralls": "^2.2",
3635
"guzzlehttp/guzzle": "^7.0"
3736
},
3837
"suggest": {

0 commit comments

Comments
 (0)