Repository navigation
Check code style with Pint on pull requests - #212
Open
shanesmithdev wants to merge 1 commit into
Open
shanesmithdev wants to merge 1 commit into
shanesmithdev wants to merge 1 commit into
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 --teston pull requests and on pushes to main. It fails and lists the files Pint would change. Runningvendor/bin/pintlocally 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