Skip to content
This repository has been archived by the owner on Oct 6, 2023. It is now read-only.

Add simple CI #16

Merged
merged 9 commits into from
Nov 17, 2020
Merged

Add simple CI #16

merged 9 commits into from
Nov 17, 2020

Conversation

sanmai
Copy link
Contributor

@sanmai sanmai commented Nov 16, 2020

@@ -14,7 +14,7 @@
"phpunit/phpunit": "^4.8.36 || ^5.7.27 || ^6.5.14 || ^7.5.20 || ^8.0 || ^9.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^2.16"
"friendsofphp/php-cs-fixer": "^2"
Copy link
Member

Choose a reason for hiding this comment

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

why it's needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because of this: https://github.com/sanmai/polyfill/runs/1406796543?check_suite_focus=true

It's easier than to follow a full dev-tools/.phar approach, right at the moment.

Copy link
Member

Choose a reason for hiding this comment

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

issue is that if you run php-cs-fixer 2.0 it may apply some other CodeStyle and expect them to be applied, while we are following ruleset of 2.16.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

True, but we ain't going to run php-cs-fixer on PHP 5.6, are we?

There's a dedicated CS workflow, that uses PHP 7.4 to verify the work.

@sanmai sanmai requested a review from keradus November 17, 2020 10:20
.github/workflows/cs.yaml Outdated Show resolved Hide resolved
.github/workflows/ci.yaml Outdated Show resolved Hide resolved
@keradus keradus changed the base branch from master to main November 17, 2020 10:47
.github/workflows/ci.yaml Outdated Show resolved Hide resolved
@keradus keradus merged commit 973a3a9 into PHPUnitGoodPractices:main Nov 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants