From 5e006f73e9c473c7cbaddbc393f21bb1c2332cb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Chris=20M=C3=BCller?= <2566282+brotkrueml@users.noreply.github.com> Date: Wed, 11 Dec 2024 19:37:19 +0100 Subject: [PATCH] ci: introduce Codecov --- .github/workflows/ci.yml | 15 ++++++--------- README.md | 3 ++- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 20cb2ce9..c8ad96c0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -131,12 +131,9 @@ jobs: INFECTION_BADGE_API_KEY: ${{ secrets.INFECTION_BADGE_API_KEY }} run: | make mutation -# - name: Generate code coverage -# run: | -# make code-coverage -# - name: Send code coverage report to coveralls.io -# if: github.event_name != 'pull_request' -# run: .Build/bin/php-coveralls -v -# env: -# COVERALLS_RUN_LOCALLY: 1 -# COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} + - name: Run tests and collect coverage + run: .Build/bin/phpunit --configuration Tests/phpunit.xml.dist --coverage-clover coverage.xml . + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v5 + with: + token: ${{ secrets.CODECOV_TOKEN }} diff --git a/README.md b/README.md index f094d5db..6dd44ac2 100644 --- a/README.md +++ b/README.md @@ -2,10 +2,11 @@ [![CI](https://github.com/brotkrueml/schema/actions/workflows/ci.yml/badge.svg)](https://github.com/brotkrueml/schema/actions/workflows/ci.yml) [![Documentation](https://github.com/brotkrueml/schema/actions/workflows/docs.yml/badge.svg)](https://github.com/brotkrueml/schema/actions/workflows/docs.yml) +[![codecov](https://codecov.io/gh/brotkrueml/schema/graph/badge.svg?token=SFUF1UL2X2)](https://codecov.io/gh/brotkrueml/schema) +[![Infection MSI](https://img.shields.io/endpoint?style=flat&url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2Fbrotkrueml%2Fschema%2Fmain)](https://dashboard.stryker-mutator.io/reports/github.com/brotkrueml/schema/main) [![Crowdin](https://badges.crowdin.net/typo3-extension-schema/localized.svg)](https://crowdin.com/project/typo3-extension-schema) [![Latest Stable Version](https://img.shields.io/packagist/v/brotkrueml/schema.svg?label=stable)](https://packagist.org/packages/brotkrueml/schema) [![Total Downloads](https://img.shields.io/packagist/dt/brotkrueml/schema.svg)](https://packagist.org/packages/brotkrueml/schema) -[![Infection MSI](https://img.shields.io/endpoint?style=flat&url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2Fbrotkrueml%2Fschema%2Fmain)](https://dashboard.stryker-mutator.io/reports/github.com/brotkrueml/schema/main) [![Verified TYPO3 Extension](Documentation/Images/verified.svg) Verified TYPO3 Extension](https://typo3.com/typo3-cms/verified-extensions-integrations-for-typo3/extensions/embedding-schemaorg-vocabulary-in-typo3)