-
Notifications
You must be signed in to change notification settings - Fork 87
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
Update docker environment and CONTRIBUTING.md instructions #57
Conversation
@ajgarlag I'm divided. I would drop the docker setup, but since you updated it here I guess we can keep it if some find it useful. What's your preference? |
@chalasr I've decided to submit two pull requests so you can evaluate the pros and cons of each. When I contributed the In this project, I've not needed docker at all, and the contributing workflow was similar to other PHP projects. But @X-Coder264 already commented the advantages of keeping it. The main problem I see with keeping the docker environment is that is not being used in GitHub actions. I think that if we keep the docker environment as the official workflow for contributing to the bundle, we should update GitHub actions to make use of it so we can ensure that the docker environment is working as expected. |
Oh, I missed Antonio's comment on your issue sorry. Let's keep it.
Agree 👍 |
83804ee
to
7fc7ca6
Compare
I've added two GitHub actions to check CS and execute tests using the docker environment. Does the same statement from Antonio Pauletich's (I'm Antonio too) comment about not having PHP-CS-Fixer as part of the dev dependencies applies to Psalm? Should we move Psalm from composer.json to docker environment? |
Haha right, let's use gh usernames then.
That makes sense to me. |
Ok, one last question. I think we can execute |
I like the fact they represent distinct checks on a PR so better keep duplicating (or reuse steps somehow?) IMO |
In that case, IMO the PR is ready for me. If it's OK for you, I'll squash the commits. |
bdddf73
to
7bb2ba9
Compare
7bb2ba9
to
9257cb0
Compare
@ajgarlag The added |
Yes, but in that case, the code will be tested only with the versions defined in Dockerfile. So my previous proposition was to keep current GitHub actions that will test the code with the latest version of each tool, and to add a new docker.yml file to run |
@ajgarlag The Dockerfile could be changed so that it fetches the latest versions of Composer/Flex/Xdebug/PHP CS fixer by default and then the same Docker file could be used to test across all supported PHP versions. |
@X-Coder264 Thanks, I'll try to update de Dockerfile. |
e478119
to
d5e8782
Compare
I've updated the Dockerfile to install always the latest version of development tools. The only build argument for the docker image is the PHP version. WDYT? |
@ajgarlag Looks great. One thing, can we reduce the number of checks? |
aa220e8
to
1e9e37a
Compare
72496c9
to
0ef9d1c
Compare
@chalasr After some vacation days, I've rebased and finished my work here. WDYT? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome!
Use the docker environment in GitHub Actions too
0ef9d1c
to
3ee78c0
Compare
I've changed the |
Thank you @ajgarlag. |
@chalasr Off-topic: While coding this PR, I got a failed test that I cannot explain. See https://github.com/thephpleague/oauth2-server-bundle/runs/4177437425?check_suite_focus=true. Maybe a time sensitive assertion? |
Alternative to #56 updating current docker environment.
Fix #55