Add PHP Lint for recent versions#40
Labels
No milestone
No project
No assignees
3 participants Notifications
Due date No due date set.
Dependencies
No dependencies set.
Reference: Codeberg-CI/examples#40
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "martijndeb/examples:php_8_lint"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This example adds a matrix step for the 4 most recent supported PHP versions. It uses a bash command and the PHP built-in linter to find errors. It doesn't print much output due to the nature of the linter, but the build step fails with exit code 1 if linting fails.
@sexybiggetje nice, but could you fix the linter issue :)
I see, minor issue, fixed :)
Please see point 2 in the README
@ -17,6 +17,7 @@ Pull requests are welcome!
| [tectonic/.woodpecker.yml](tectonic/.woodpecker.yml) | LaTeX | Tectonic | Builds a TeX file and pushes the resulting PDF file to a given repository. |
| [Jekyll/jekyll.yml](Jekyll/jekyll.yml) | Markdown | Jekyll | CI step to build static website files and publish them to Codeberg Pages using Jekyll |
| [Hugo/hugo.yml](Hugo/hugo.yml) | Markdown | Hugo | CI step to build static website files and publish them to Codeberg Pages with Hugo |
| [PHP/.woodpecker/lint.yaml](PHP/.woodpecker/lint.yaml) | PHP | Bash | CI step lint PHP files and report on errors |
Please format the table so that all column are aligned
Conflicting now :/
@sexybiggetje Do you want to resolve conflicts?
I tried merging and updating, but the pipeline fails on prettier now? Can't seem to see as to why it fails in the details
There's a prettier lint issue in the README, as reported in CI. Run
prettier -w
on the repo root and commit the diff :)Great success!
Thanks for contributing!