Skip to content

Check code style with Pint on pull requests - #212

Open
shanesmithdev wants to merge 1 commit into
NativePHP:mainfrom
shanesmithdev:check-code-style-with-pint
Open

shanesmithdev wants to merge 1 commit into
NativePHP:mainfrom
shanesmithdev:check-code-style-with-pint

Conversation

@shanesmithdev

Copy link
Copy Markdown
Contributor

Pint is already a dev dependency, but it only ran when someone remembered to run it locally. The new Code style workflow runs vendor/bin/pint --test on pull requests and on pushes to main. It fails and lists the files Pint would change. Running vendor/bin/pint locally fixes them.

It installs dependencies the same way the Tests workflow does. Pull requests from forks get no plugin licence credentials, so they install with composer setup:free, and their code style still gets checked.

Screenshots

  • No visible change

Pint is already a dev dependency, but only ran when someone remembered
to run it locally. The new Code style workflow runs vendor/bin/pint
--test on pull requests and pushes to main, failing with the files it
would change. It installs like the Tests workflow, so forks without the
plugin credentials still get checked.
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.

1 participant