Skip to content

Add Codecov support to PHPUnit and Jest workflow#249

Open
tyrann0us wants to merge 6 commits into
mainfrom
feature/188-codecov-support-unit-tests-php
Open

Add Codecov support to PHPUnit and Jest workflow#249
tyrann0us wants to merge 6 commits into
mainfrom
feature/188-codecov-support-unit-tests-php

Conversation

@tyrann0us
Copy link
Copy Markdown
Member

@tyrann0us tyrann0us commented May 26, 2026

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes/features)
  • Docs have been added/updated (for bug fixes/features)

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)

Feature

What is the current behavior? (You can also link to an open issue here)

The PHPUnit and Jest workflows don't support (conditionally) uploading coverage reports to Codecov.

What is the new behavior (if this is a feature change)?

Add Codecov support for the "Unit tests PHP" and "Unit tests JavaScript" workflows by uploading the respective coverage files to Codecov.

Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)

No. The tests are only run with coverage support, i.e., write to a coverage report file, when the CODECOV_TOKEN secret is set. And only if these files exist (coverage/lcov.info for Jest and coverage.xml for PHPUnit).

Other information

Closes #188

@tyrann0us tyrann0us requested a review from a team as a code owner May 26, 2026 07:39
Comment thread .github/workflows/tests-unit-php.yml Outdated
@tyrann0us tyrann0us changed the title Add Codecov support to tests-unit-php workflow Add Codecov support to PHPUnit and Jest workflow May 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request]: tests-unit-php.yml does not support codecov

2 participants