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

Add Rector to CI #133

Merged
merged 3 commits into from
Jul 22, 2024
Merged

Add Rector to CI #133

merged 3 commits into from
Jul 22, 2024

Conversation

Kaspiman
Copy link

@Kaspiman Kaspiman commented Jun 30, 2024

What was changed

Add Rector to CI. Now only for one directory - src/Client.

Why?

Because this world needs more static analysis!

image

src/Client/Caster/TraceCaster.php Outdated Show resolved Hide resolved
src/Client/TrapHandle/Dumper.php Outdated Show resolved Hide resolved
src/Client/TrapHandle/ContextProvider/Source.php Outdated Show resolved Hide resolved
rector.php Outdated Show resolved Hide resolved
.github/workflows/static-analysis.yml Show resolved Hide resolved
@lotyp
Copy link
Member

lotyp commented Jun 30, 2024

@Kaspiman

First of all, thank you for your contribution.

Regarding rector, it has already been added into my template package here:

https://github.com/wayofdev/laravel-package-tpl/blob/master/.github/workflows/refactoring.yml

and also it is used in this package:

https://github.com/cycle/active-record/blob/master/.github/workflows/refactoring.yml

Could you please, instead of modifying static-analysis.yml file, create new one, like it was done in these two packages?

Name it refactoring.yml and copy contents from here: https://github.com/wayofdev/laravel-package-tpl/blob/master/.github/workflows/refactoring.yml

Also better to stick to full versions of actions in CI files and use renovatebot or dependabot to do continuous health checks and updates.

.github/workflows/static-analysis.yml Outdated Show resolved Hide resolved
@lotyp
Copy link
Member

lotyp commented Jul 3, 2024

@Kaspiman, I see that you did some changes—nice work!

There are a couple of things to fix from the DX (Developer Experience) side:

  1. Squash Commits: Can you squash your commits locally and then force push your branch so that there is only one commit?

  2. Conventional Commits: We use conventional commits for this project. Please rename your commit message from "Add Rector to CI" to "ci: add rector workflow". This format is important as we automatically generate the CHANGELOG.md file from commit messages.

Additionally, I noticed that we are missing a CONTRIBUTING.md file in this repository. This is a good opportunity for me 😅 to create a new issue to add this file.

Right now you can check CONTRIBUTING.md here:

I will add this file also to this repository.

Update:

Created separate issue: #135

Copy link
Member

@roxblnfk roxblnfk left a comment

Choose a reason for hiding this comment

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

LGTM

@roxblnfk roxblnfk merged commit e0f40c8 into buggregator:master Jul 22, 2024
18 of 21 checks passed
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.

3 participants