-
Notifications
You must be signed in to change notification settings - Fork 11.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[11.x] Add Coveralls CI workflow for test coverage reporting #53648
Conversation
fail-fast: true | ||
matrix: | ||
php: [ 8.2, 8.3, 8.4 ] | ||
phpunit: [ '10.5.12', '11.3.2' ] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should just run on a single PHP version and the latest PHPUnit.
tools: composer:v2 | ||
coverage: none | ||
coverage: xdebug |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
coverage: xdebug | |
coverage: none |
@@ -77,9 +77,9 @@ jobs: | |||
uses: shivammathur/setup-php@v2 | |||
with: | |||
php-version: 8.3 | |||
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, pdo_mysql, :php-psr | |||
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, pdo_mysql, xml, xdebug, :php-psr |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, pdo_mysql, xml, xdebug, :php-psr | |
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, pdo_mysql, :php-psr |
tools: composer:v2 | ||
coverage: none | ||
coverage: xdebug |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
coverage: xdebug | |
coverage: none |
@@ -31,9 +31,9 @@ jobs: | |||
uses: shivammathur/setup-php@v2 | |||
with: | |||
php-version: 8.3 | |||
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, pdo_mysql, :php-psr | |||
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, pdo_mysql, xml, xdebug, :php-psr |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, pdo_mysql, xml, xdebug, :php-psr | |
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, pdo_mysql, :php-psr |
tools: composer:v2 | ||
coverage: none | ||
coverage: xdebug |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
coverage: xdebug | |
coverage: none |
@@ -128,9 +128,9 @@ jobs: | |||
uses: shivammathur/setup-php@v2 | |||
with: | |||
php-version: 8.3 | |||
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, pdo_mysql, :php-psr | |||
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, pdo_mysql, xml, xdebug, :php-psr |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, pdo_mysql, xml, xdebug, :php-psr | |
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, pdo_mysql, :php-psr |
tools: composer:v2 | ||
coverage: none | ||
coverage: xdebug |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
coverage: xdebug | |
coverage: none |
@@ -82,9 +82,9 @@ jobs: | |||
uses: shivammathur/setup-php@v2 | |||
with: | |||
php-version: 8.3 | |||
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, pdo_mysql, :php-psr | |||
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, pdo_mysql, xml, xdebug, :php-psr |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, pdo_mysql, xml, xdebug, :php-psr | |
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, pdo_mysql, :php-psr |
tools: composer:v2 | ||
coverage: none | ||
coverage: xdebug |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
coverage: xdebug | |
coverage: none |
@@ -35,9 +35,9 @@ jobs: | |||
uses: shivammathur/setup-php@v2 | |||
with: | |||
php-version: 8.3 | |||
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, pdo_mysql, :php-psr | |||
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, pdo_mysql, xml, xdebug, :php-psr |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, pdo_mysql, xml, xdebug, :php-psr | |
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, pdo_mysql, :php-psr |
Thanks for your pull request to Laravel! Unfortunately, I'm going to delay merging this code for now. To preserve our ability to adequately maintain the framework, we need to be very careful regarding the amount of code we include. If applicable, please consider releasing your code as a package so that the community can still take advantage of your contributions! |
Description
This Pull Request introduces a new GitHub Actions workflow to integrate Coveralls for automated test coverage reporting. The workflow is added under
.github/workflows/coveralls.yml
. It is designed to provide detailed code coverage metrics for pull requests and the main branches.Benefit to End Users
The inclusion of Coveralls enhances the development workflow by providing:
These benefits ensure a more robust and reliable Laravel framework for developers and end users alike.
Implementation Details
coveralls
master
branch and branches matching the*.x
pattern.ubuntu-24.04
with a matrix of PHP versions (8.2
,8.3
,8.4
) and PHPUnit versions (10.5.12
,11.3.2
).phpunit
and generates a Clover coverage report.php-coveralls
library.The workflow does not interfere with existing configurations and complements the current CI/CD processes.
Why It Doesn't Break Existing Features
How It Makes Building Web Applications Easier
By integrating Coveralls, contributors can:
Tests
No additional feature tests are required for this change since it pertains to CI workflow. However: