Skip to content
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

Calculate code coverage on PHP 8 #5689

Merged
merged 1 commit into from May 13, 2021
Merged

Calculate code coverage on PHP 8 #5689

merged 1 commit into from May 13, 2021

Conversation

kubawerlos
Copy link
Contributor

It's almost a half a year since the release, we can use PHP 8 to calculate code coverage e.g. to avoid situation like in #5685 where it shows that coverage dropped.

@coveralls
Copy link

coveralls commented May 5, 2021

Coverage Status

Coverage increased (+0.02%) to 91.541% when pulling acc1806 on kubawerlos:calculate_coverage_on_php_8 into f2f6e3b on FriendsOfPHP:2.19.

@kubawerlos kubawerlos added this to the 2.19.1 milestone May 5, 2021
@@ -37,9 +37,6 @@ jobs:

- operating-system: 'ubuntu-20.04'
php-version: '7.4'
job-description: 'with calculating code coverage'
calculate-code-coverage: 'yes'
phpunit-flags: '--testsuite coverage --exclude-group covers-nothing --coverage-clover build/logs/clover.xml'

- operating-system: 'ubuntu-20.04'
php-version: '7.4'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
php-version: '7.4'
php-version: '8.0'

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same few lines later for job-description: 'with migration rules'

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SRP, let's do code coverage PHP version update here and handle others in separate PR (as some syntax is broken with migration in PHP 8 and tests are failing).

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

then drop the duplicated 7.4 job, we don't need 2 of them anymore

@@ -53,7 +47,9 @@ jobs:

- operating-system: 'ubuntu-20.04'
php-version: '8.0'
composer-flags: '--ignore-platform-req=php' # as this is a version not yet officially supported by PHP CS Fixer
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i wonder, maybe we should add 8.1 ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sounds like a good idea... for separate PR ;)

@kubawerlos kubawerlos added the RTM Ready To Merge label May 12, 2021
@keradus keradus removed the RTM Ready To Merge label May 13, 2021
@keradus
Copy link
Member

keradus commented May 13, 2021

Thank you @kubawerlos.

@keradus keradus merged commit 98ad482 into PHP-CS-Fixer:2.19 May 13, 2021
@kubawerlos kubawerlos deleted the calculate_coverage_on_php_8 branch May 14, 2021 21:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants