Skip to content

Conversation

@jrfnl
Copy link
Contributor

@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.
@gRegorLove
Copy link
Member

LGTM! 🎉

@gRegorLove gRegorLove merged commit b75a69d into microformats:main Sep 30, 2024
6 checks passed
@jrfnl jrfnl deleted the feature/ghactions-only-run-phpcs-once branch September 30, 2024 03:25
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.

2 participants