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 github action for coding style checks #1878

Merged
merged 3 commits into from
Dec 1, 2020

Conversation

deguif
Copy link
Collaborator

@deguif deguif commented Nov 27, 2020

See result here: https://github.com/deguif/Elastica/runs/1462981807
Should be accessible here once merged.

@ruflin
Copy link
Owner

ruflin commented Nov 30, 2020

Nice! This looks great. I would suggest we add a changelog entry even if though this is not related to the actual code. Still it is a big change to how the project does CI.

WDYT about for now keep the travis part in an only remove it when we see it sucessfully working on 2-3 PR's?

php-cs-fixer --version

- name: 'Check PHP code'
run: 'php-cs-fixer fix --diff --dry-run --allow-risky=yes --using-cache=false'
Copy link
Owner

Choose a reason for hiding this comment

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

Is it possible to use make run-phpcs instead here? Like this we have only 1 place where we specify the exact params to be run like we have for travis. So local and CI are always in sync.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I would be in favor to let the setup-php github action setup this, that's used on many PHP projects on github.
Advantage: No probem with extra downloads done by the makefile to install the tools (shipped directly in the GA)

Downside is that we will have to maintain two versions as you stated, the local environment (via makefile) for contributors and the CI one, but I think we can live with it. The CI one will be the source of trust as it would make the pull request / merge checks fail.

Would that be a blocker for you?

Regarding keeping the travis part, I can let the old part but I'm familiar with this setup as I already configured this way on many projects and it works really well. See for example:

@deguif deguif force-pushed the run-cs-on-github-action branch from e498039 to df4d7f8 Compare November 30, 2020 16:31
@ruflin ruflin merged commit d7666a1 into ruflin:master Dec 1, 2020
@ruflin
Copy link
Owner

ruflin commented Dec 1, 2020

@deguif Not a blocker at all. I just merged it. I'm much more keen to get CI running again then anything else! Thanks for taking this on.

@deguif deguif deleted the run-cs-on-github-action branch March 19, 2021 15:56
@deguif deguif self-assigned this Dec 7, 2021
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