Skip to content

Commit d8908d4

Browse files
CopilotBenMorel
andcommitted
chore: migrate from Coveralls to Codecov
Co-authored-by: BenMorel <1952838+BenMorel@users.noreply.github.com>
1 parent 73b036c commit d8908d4

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
@@ -41,13 +41,11 @@ jobs:
4141
if: ${{ matrix.php-version != env.COVERAGE_PHP_VERSION }}
4242

4343
- name: Run PHPUnit with coverage
44-
run: |
45-
mkdir -p mkdir -p build/logs
46-
vendor/bin/phpunit --coverage-clover build/logs/clover.xml
44+
run: vendor/bin/phpunit --coverage-clover clover.xml
4745
if: ${{ matrix.php-version == env.COVERAGE_PHP_VERSION }}
4846

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

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+
<a href="https://codecov.io/github/brick/std"><img src="https://codecov.io/github/brick/std/graph/badge.svg"></a>
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": "^9.0",
17-
"php-coveralls/php-coveralls": "^2.2"
16+
"phpunit/phpunit": "^9.0"
1817
},
1918
"suggest": {
2019
"ext-json": "Required to use JsonEncoder and JsonDecoder"

0 commit comments

Comments
 (0)