-
-
Notifications
You must be signed in to change notification settings - Fork 696
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
Using Vale in CI for spellcheck #4423
Conversation
✅ Deploy Preview for volto ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
Passing run #4555 ↗︎
Details:
This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. |
All the files in |
Sure! was going to that too, thanks!😊 |
@stevepiercy should I move the |
What makes it confusing? I don't understand. |
IMHO, since it will be out there in root directory and ppl mostly use |
It definitely should not be in a dot-folder, where it might not show up in editors. We want people to contribute to it. It's fine where it is, and is consistent with |
Oh i see they are on root directory, thanks i got it :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks pretty good, but we need to test it in CI before merging. See my review comments, and if that does not work, check the GitHub Actions docs for more ideas.
I think @fredvd also had this chicken-and-egg situation, where he could not test CI until the PR was merged, but merging was too soon. He might have some tips.
@stevepiercy The test/job does run. See for example https://github.com/plone/volto/actions/runs/4246317905/jobs/7382971562 the vale action now is set to always succeed though, check the documentation to make it fail when it finds errors. Or is that not the intention? It doesn't report any findins now in the result. We could maybe add that link to the report to the summary output of the job. @MAX-786 the documentation and vale jobs now run in parallel. Is that your intention? So Vale is not testing anything from the generated docs, but can only check the source files. If you want to have one report with output, it would be nicer to run vale after the documentation build and linkcheck as an extra step. Then you'd also have only one checkout and one report/job output to test for warnings/problems etc. |
We shall not require Vale success at this time. There are way too many words that need to be added to the accept/reject files before this can happen. Instead we want it to provide feedback to the contributors and reviewers for further action. For example, when I run Vale works on Markdown source: https://vale.sh/docs/topics/scoping/#markdown The Vale runner in CI is not configured to find any of the source files from checkout, which may be a "success" or a "lack of failure": The Vale runner needs to be configured correctly. I am not sure how to do that. Let's let @MAX-786 give it a shot, unless you @fredvd happen to know what that is. |
@fredvd I tried doing it, if this isn't working I can revert it back to before.
@stevepiercy as I mentioned in the above comment I guess we can an optional input to configure vale. Let me know your thoughts :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remember to check the result of the Documentation build in GitHub Actions.
Co-authored-by: Steve Piercy <web@stevepiercy.com>
I cancelled the Documentation workflow because it appeared to have stalled after 43 minutes. I then restarted it. We'll see.... |
@stevepiercy status? |
|
🥹Apologies for my recent absence due to dengue fever. Thank you for your patience and support. I'll get back to this PR now. Agaain sorry for the delay! |
@MAX-786 I'm glad your feeling better and back. Please let me know if you have any questions. It looks like the docs CI build still stalls and never completes. |
Thanks @stevepiercy , I'll let you know asap .... |
Now, after trying many times, vale GitHub action works well on my local machine! ( using nektos/act to run github actions locally). |
Linkcheck & html build is failing! Skipping both for now. |
We are getting some Findings NOW! :) But, it is giving all findings before getting to Finding Report @stevepiercy I am trying to find a way to get more structured output, please let me know if you know a way to do it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good, with the exception to revert the commented workflows.
Co-authored-by: Steve Piercy <web@stevepiercy.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
w00t! We have spelling and style check! Thank you!
One more run after merging master to this PR. If it passes, I'll merge. |
it passed! 🥹🥳 |
Co-authored-by: Steve Piercy <web@stevepiercy.com>
* master: (67 commits) Add current page parameter to the route in the listing and search block pagination (#4159) Fixed wrong localization on password reset page(#4656) (#4657) Release notes for 16.19.0 (#4655) Razzle upgrade notice in upgrade guide (#4641) Release generate-volto 7.0.0-alpha.3 Update to latest Razzle - needed since #3997. This fixes the duplicated Razzles issue (#4640) 3092 improve spellcheck (#4633) developer process for first time contributing (#4617) Trigger CI on pull_request event (#4629) Pining of `pydata-sphinx-theme` and `sphinx-book-theme`, CI is complaining. (#4626) Set sameSite in `18N_LANGUAGE` cookie (#4627) Update simple-git (#4546) DefaultView (blocks disabled): Show field name as tip on hover of label (#4598) Fix regexp that checks valid URLs and improve tests (#4601) Release 17.0.0-alpha.3 Update changelog relese 16.18.0 (#4596) InternalURl helper method should incorporate externalRoutes settings … (#4560) Update message Add-on control panel (#4574) Fix video warnings link errors (#4578) Using Vale in CI for spellcheck (#4423) ...
fixes #4416