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: only run PHPCS once + update CS dependencies #260

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

jrfnl
Copy link

@jrfnl jrfnl commented Sep 12, 2024

Composer: update some CS dependencies

The DealerDirect PHPCS Composer plugin has released version 1.0 quite a while ago. And if updating that, might as well update PHPCS as well.

GH Actions: only run PHPCS once

All sniffs from PHPCS are set up to give the same results independently of the PHP version on which PHPCS is run, so there is no need to run it against multiple PHP versions in the matrix.

With this in mind, I'm suggesting to split off the PHPCS check into its own job.

Within that job, I've also set things up in a way that any CS errors will be shown inline in the code view if the build was run for a PR.

The DealerDirect PHPCS Composer plugin has released version 1.0 quite a while ago. And if updating that, might as well update PHPCS as well.
All sniffs from PHPCS are set up to give the same results independently of the PHP version on which PHPCS is run, so there is no need to run it against multiple PHP versions in the matrix.

With this in mind, I'm suggesting to split off the PHPCS check into its own job.

Within that job, I've also set things up in a way that any CS errors will be shown inline in the code view if the build was run for a PR.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant