Skip to content

Commit 6777c04

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

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

7575
- name: Run PHPUnit with coverage
76-
run: |
77-
mkdir -p mkdir -p build/logs
78-
vendor/bin/phpunit --coverage-clover build/logs/clover.xml
76+
run: vendor/bin/phpunit --coverage-clover clover.xml
7977
if: ${{ matrix.php-version == env.COVERAGE_PHP_VERSION }}
8078

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ This library is a foundation to read schema.org structured data in [brick/schema
88
but may be used with other vocabularies.
99

1010
[![Build Status](https://github.com/brick/structured-data/workflows/CI/badge.svg)](https://github.com/brick/structured-data/actions)
11-
[![Coverage Status](https://coveralls.io/repos/github/brick/structured-data/badge.svg?branch=master)](https://coveralls.io/github/brick/structured-data?branch=master)
11+
<a href="https://codecov.io/github/brick/structured-data"><img src="https://codecov.io/github/brick/structured-data/graph/badge.svg"></a>
1212
[![Latest Stable Version](https://poser.pugx.org/brick/structured-data/v/stable)](https://packagist.org/packages/brick/structured-data)
1313
[![Total Downloads](https://poser.pugx.org/brick/structured-data/downloads)](https://packagist.org/packages/brick/structured-data)
1414
[![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
@@ -19,7 +19,6 @@
1919
},
2020
"require-dev": {
2121
"phpunit/phpunit": "^8.0 || ^9.0",
22-
"php-coveralls/php-coveralls": "^2.0",
2322
"vimeo/psalm": "6.12.0"
2423
},
2524
"autoload": {

0 commit comments

Comments
 (0)