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

Use php-cs-fixer from Makefile in order to keep same version #1489

Merged
merged 3 commits into from
Feb 22, 2021

Conversation

sidz
Copy link
Member

@sidz sidz commented Feb 22, 2021

Our CI uses ab old version of PHP-CS-Fixer - 2.17.3 but Makefile downloads - 2.18.2.

This PR fixes this and now GA going to run cs-check from Makefile.

Initial discussion was in the #1487 (review).

@maks-rafalko maks-rafalko enabled auto-merge (rebase) February 22, 2021 15:59
@@ -19,7 +19,7 @@ BOX_URL="https://github.com/humbug/box/releases/download/3.10.0/box.phar"

PHP_CS_FIXER=./.tools/php-cs-fixer
PHP_CS_FIXER_URL="https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v2.18.2/php-cs-fixer.phar"
PHP_CS_FIXER_CACHE=build/cache/.php_cs.cache
PHP_CS_FIXER_CACHE=.php_cs.cache
Copy link
Member Author

@sidz sidz Feb 22, 2021

Choose a reason for hiding this comment

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

php-cs-fixer doesn't create folder if folder doesn't exist. And I wouldn't create an additional step just for this case.
Hope this is not an issue

Comment on lines +72 to +73
LC_ALL=C sort -c -u .gitignore
$(MAKE) check_trailing_whitespaces
Copy link
Member Author

Choose a reason for hiding this comment

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

an additional plus that CI will run these checks as well

@maks-rafalko maks-rafalko merged commit c52cdc8 into master Feb 22, 2021
@maks-rafalko maks-rafalko deleted the use-same-php-cs-fixer-in-ci-and-makefile branch February 22, 2021 17:27
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.

None yet

2 participants