-
Notifications
You must be signed in to change notification settings - Fork 144
Create code coverage during the CI builds #213
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
Conversation
0f650dd
to
e1c642f
Compare
Note: This needs the secret |
.github/workflows/ci.yml
Outdated
include: | ||
- php-version: 5.3 | ||
coverage: none | ||
- php-version: 5.4 | ||
coverage: none | ||
- php-version: 5.5 | ||
coverage: none | ||
- php-version: 5.6 | ||
coverage: none | ||
- php-version: 7.0 | ||
coverage: none | ||
- php-version: 7.1 | ||
coverage: none | ||
- php-version: 7.2 | ||
coverage: none | ||
- php-version: 7.3 | ||
coverage: none | ||
- php-version: 7.4 | ||
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.
This could be made simpler with:
include: | |
- php-version: 5.3 | |
coverage: none | |
- php-version: 5.4 | |
coverage: none | |
- php-version: 5.5 | |
coverage: none | |
- php-version: 5.6 | |
coverage: none | |
- php-version: 7.0 | |
coverage: none | |
- php-version: 7.1 | |
coverage: none | |
- php-version: 7.2 | |
coverage: none | |
- php-version: 7.3 | |
coverage: none | |
- php-version: 7.4 | |
coverage: xdebug | |
php-version: ['5.3', '5.4', '5.5', '5.6', '7.0', '7.1', '7.2', '7.3'] | |
coverage: ['none'] | |
include: | |
- php-version: 7.4 | |
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.
Thanks, @pierlon!
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.
@oliverklee is there a reason you haven’t followed @pierlon’s suggestion? 52aac78 isn’t included in the proposed changeset.
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.
I think I included it. Possibly it got lost when I squashed or rebased. I'll update this PR and repush.
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.
Fixed and repushed.
52aac78
to
d56d808
Compare
The code coverage is only created for one PHP version (the highest version) per build as there is no point to have multiple code coverage uploads for the same code change.
d56d808
to
71c513b
Compare
The code coverage is only created for one PHP version (the highest version)
per build as there is no point to have multiple code coverage uploads
for the same code change.