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 a GitHub action to lint phpdocs #9806
Conversation
Nice work! A few comments:
|
Thank you !
There is errors I can not fix, this is to make the action pass but still output errors, for example on pull-requests |
cc @chillu |
Thank you William! I would rather have this in the Travis config, since it'll be far easier to roll out across our large number of modules - see #9174. But then again, this is a great starting point - and we're only running a handful of modules where PHPDoc linting is important (those going on api.ss.org) @steve-silverstripe @dnsl48 Since you worked on the shared Travis config stuff, keen on your thoughts. |
The guts of it is the beautiful github action sudo-bot/action-doctum, which uses the docker container underneath: runs:
using: "docker"
image: "docker://botsudo/action-doctum:latest"
args:
- latest
- "${{ inputs.config-file }}"
- "${{ inputs.method }}"
- "${{ inputs.cli-args }}" I guess we could run that container in our Travis shared configs. That would allow us to easily scale that lint to the hundred modules. With GitHub actions that would require us to copy-paste this PR and make a hundred others - separately for each repository. Another potential problem is - GitHub Actions are out of sight for the maintainers. E.g. we won't remember to update the doctum action version. Now it's |
+10 for try to get this into travis shared config rather than github actions |
I will keep that in mind, but this will have some delay before I fix that :) |
I can assist to create the script but I am too far away from this organization to understand well how the shared repo works. |
Add a GitHub action to lint phpdocs