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

GH Actions: harden the workflow against PHPCS ruleset errors #137

Merged
merged 1 commit into from
Jan 4, 2024

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Oct 23, 2022

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 modified the milestone: 0.9.0 Oct 23, 2022
@jrfnl jrfnl force-pushed the feature/ghactions-harden-cs-steps branch from 16011ea to ab563b7 Compare April 5, 2023 06:14
@jrfnl jrfnl force-pushed the feature/ghactions-harden-cs-steps branch from ab563b7 to 4bed1de Compare December 27, 2023 07:30
@ouikhuan ouikhuan self-requested a review December 27, 2023 08:23
Copy link
Contributor

@ouikhuan ouikhuan left a comment

Choose a reason for hiding this comment

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

LGTM

@jrfnl jrfnl force-pushed the feature/ghactions-harden-cs-steps branch from 4bed1de to e8563c3 Compare January 4, 2024 07:51
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 force-pushed the feature/ghactions-harden-cs-steps branch from e8563c3 to 851649b Compare January 4, 2024 07:56
@jrfnl jrfnl merged commit 680d709 into master Jan 4, 2024
22 checks passed
@jrfnl jrfnl deleted the feature/ghactions-harden-cs-steps branch January 4, 2024 07:58
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.

2 participants