diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index efbcba7..37a7ccd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -73,13 +73,11 @@ jobs: if: ${{ matrix.php-version != env.COVERAGE_PHP_VERSION }} - name: Run PHPUnit with coverage - run: | - mkdir -p mkdir -p build/logs - vendor/bin/phpunit --coverage-clover build/logs/clover.xml + run: vendor/bin/phpunit --coverage-clover clover.xml if: ${{ matrix.php-version == env.COVERAGE_PHP_VERSION }} - - name: Upload coverage report to Coveralls - run: vendor/bin/php-coveralls --coverage_clover=build/logs/clover.xml -v + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v5 env: - COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} if: ${{ matrix.php-version == env.COVERAGE_PHP_VERSION }} diff --git a/README.md b/README.md index 7ba5dd1..ddf5772 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ This library is a foundation to read schema.org structured data in [brick/schema but may be used with other vocabularies. [![Build Status](https://github.com/brick/structured-data/workflows/CI/badge.svg)](https://github.com/brick/structured-data/actions) -[![Coverage Status](https://coveralls.io/repos/github/brick/structured-data/badge.svg?branch=master)](https://coveralls.io/github/brick/structured-data?branch=master) +[![Coverage Status](https://codecov.io/github/brick/structured-data/graph/badge.svg)](https://codecov.io/github/brick/structured-data) [![Latest Stable Version](https://poser.pugx.org/brick/structured-data/v/stable)](https://packagist.org/packages/brick/structured-data) [![Total Downloads](https://poser.pugx.org/brick/structured-data/downloads)](https://packagist.org/packages/brick/structured-data) [![License](https://img.shields.io/badge/license-MIT-blue.svg)](http://opensource.org/licenses/MIT) diff --git a/composer.json b/composer.json index 0827ad7..ded2949 100644 --- a/composer.json +++ b/composer.json @@ -19,7 +19,6 @@ }, "require-dev": { "phpunit/phpunit": "^8.0 || ^9.0", - "php-coveralls/php-coveralls": "^2.0", "vimeo/psalm": "6.12.0" }, "autoload": {