Skip to content

GH Actions: minor tweaks #72

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 2 commits into from
Mar 20, 2023
Merged

GH Actions: minor tweaks #72

merged 2 commits into from
Mar 20, 2023

Conversation

jrfnl
Copy link
Collaborator

@jrfnl jrfnl commented Mar 20, 2023

GH Actions: minor tweak

Since Composer 2.2.0, the --ignore-platform-reqs setting can be made more specific.

By using --ignore-platform-req=php+ instead of --ignore-platform-reqs, only the upper bound for PHP platform requirements will be ignored, not all platform requirements.

Ref: https://blog.packagist.com/composer-2-2/#-ignore-platform-req-improvements

GH Actions: harden the workflow against PHPCS ruleset errors

If there is a ruleset error, the cs2pr action doesn't receive an xml report and exits with a 0 error code, even though the PHPCS run failed (though not on CS errors, but on a ruleset error).

This changes the GH Actions workflow to allow for that situation and still fail the build in that case.

jrfnl added 2 commits March 20, 2023 06:29
Since Composer 2.2.0, the `--ignore-platform-reqs` setting can be made more specific.

By using `--ignore-platform-req=php+` instead of `--ignore-platform-reqs`, only the upper bound for PHP platform requirements will be ignored, not _all_ platform requirements.

Ref: https://blog.packagist.com/composer-2-2/#-ignore-platform-req-improvements
If there is a ruleset error, the `cs2pr` action doesn't receive an `xml` report and exits with a `0` error code, even though the PHPCS run failed (though not on CS errors, but on a ruleset error).

This changes the GH Actions workflow to allow for that situation and still fail the build in that case.
@jrfnl jrfnl added the CI This issue or pull request is related to the build process label Mar 20, 2023
@jrfnl jrfnl added this to the v0.5.0 milestone Mar 20, 2023
@jrfnl jrfnl requested a review from rdohms March 20, 2023 05:35
@rdohms rdohms merged commit 2a0e774 into master Mar 20, 2023
@rdohms rdohms deleted the feature/ghactions-minor-tweaks branch March 20, 2023 10:05
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
CI This issue or pull request is related to the build process
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants