Skip to content

Commit ca7a8ea

Browse files
authored
Migrate coverage reporting from Coveralls to Codecov (#23)
1 parent 6ed51fd commit ca7a8ea

3 files changed

Lines changed: 5 additions & 8 deletions

File tree

.github/workflows/ci.yml

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

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

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

6159
psalm:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
A PHP library to validate and format postcodes.
66

77
[![Build Status](https://github.com/brick/postcode/workflows/CI/badge.svg)](https://github.com/brick/postcode/actions)
8-
[![Coverage Status](https://coveralls.io/repos/github/brick/postcode/badge.svg?branch=master)](https://coveralls.io/github/brick/postcode?branch=master)
8+
[![Coverage Status](https://codecov.io/github/brick/postcode/graph/badge.svg)](https://codecov.io/github/brick/postcode)
99
[![Latest Stable Version](https://poser.pugx.org/brick/postcode/v/stable)](https://packagist.org/packages/brick/postcode)
1010
[![Total Downloads](https://poser.pugx.org/brick/postcode/downloads)](https://packagist.org/packages/brick/postcode)
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
@@ -12,7 +12,6 @@
1212
},
1313
"require-dev": {
1414
"phpunit/phpunit": "^11.0",
15-
"php-coveralls/php-coveralls": "^2.0",
1615
"vimeo/psalm": "6.15.1"
1716
},
1817
"autoload": {

0 commit comments

Comments
 (0)