Skip to content

Commit 1139672

Browse files
authored
Migrate coverage reporting from Coveralls to Codecov (#11)
1 parent dd79b22 commit 1139672

3 files changed

Lines changed: 6 additions & 9 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,13 @@ jobs:
3939
if: ${{ matrix.php-version != env.COVERAGE_PHP_VERSION }}
4040

4141
- name: Run PHPUnit with coverage
42-
run: |
43-
mkdir -p mkdir -p build/logs
44-
vendor/bin/phpunit --coverage-clover build/logs/clover.xml
42+
run: vendor/bin/phpunit --coverage-clover clover.xml
4543
if: ${{ matrix.php-version == env.COVERAGE_PHP_VERSION }}
4644

47-
- name: Upload coverage report to Coveralls
48-
run: vendor/bin/php-coveralls --coverage_clover=build/logs/clover.xml -v
45+
- name: Upload coverage to Codecov
46+
uses: codecov/codecov-action@v5
4947
env:
50-
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
48+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
5149
if: ${{ matrix.php-version == env.COVERAGE_PHP_VERSION }}
5250

5351
coding-standard:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Brick\Std
66
An attempt at a standard library for PHP.
77

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

composer.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313
"require-dev": {
1414
"ext-curl": "*",
1515
"ext-json": "*",
16-
"phpunit/phpunit": "^11.5",
17-
"php-coveralls/php-coveralls": "^2.2"
16+
"phpunit/phpunit": "^11.5"
1817
},
1918
"suggest": {
2019
"ext-json": "Required to use JsonEncoder and JsonDecoder"

0 commit comments

Comments
 (0)