Skip to content

Commit 3ed1b4c

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

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,11 @@ jobs:
7070
if: ${{ matrix.php-version != env.COVERAGE_PHP_VERSION }}
7171

7272
- name: Run PHPUnit with coverage
73-
run: |
74-
mkdir -p build/logs
75-
vendor/bin/phpunit --coverage-clover build/logs/clover.xml
73+
run: vendor/bin/phpunit --coverage-clover clover.xml
7674
if: ${{ matrix.php-version == env.COVERAGE_PHP_VERSION }}
7775

78-
- name: Upload coverage report to Coveralls
79-
run: vendor/bin/php-coveralls --coverage_clover=build/logs/clover.xml -v
76+
- name: Upload coverage to Codecov
77+
uses: codecov/codecov-action@v5
8078
env:
81-
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
79+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
8280
if: ${{ matrix.php-version == env.COVERAGE_PHP_VERSION }}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Maps JSON data to strongly typed PHP DTOs.
66

77
[![Build Status](https://github.com/brick/json-mapper/workflows/CI/badge.svg)](https://github.com/brick/json-mapper/actions)
8-
[![Coverage Status](https://coveralls.io/repos/github/brick/json-mapper/badge.svg?branch=main)](https://coveralls.io/github/brick/json-mapper?branch=main)
8+
[![Coverage Status](https://codecov.io/github/brick/json-mapper/graph/badge.svg)](https://codecov.io/github/brick/json-mapper)
99
[![Latest Stable Version](https://poser.pugx.org/brick/json-mapper/v/stable)](https://packagist.org/packages/brick/json-mapper)
1010
[![Total Downloads](https://poser.pugx.org/brick/json-mapper/downloads)](https://packagist.org/packages/brick/json-mapper)
1111
[![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
@@ -14,7 +14,6 @@
1414
"brick/reflection": "~0.7.0"
1515
},
1616
"require-dev": {
17-
"php-coveralls/php-coveralls": "^2.5",
1817
"phpunit/phpunit": "^11.0",
1918
"vimeo/psalm": "6.14.3"
2019
},

0 commit comments

Comments
 (0)