-
-
Notifications
You must be signed in to change notification settings - Fork 453
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
CI: site generation failure should block PR merges #1357
Comments
Yep, just pushed a commit but not clear as to why |
Locally, Franklin can't generate the site at all for me due to a syntax error in the JuliaCon highlights post. |
Good catch. It really is the little things (:head-bang) |
While I agree that Franklin should fail more explicitly and block the deployment, the current workflow to avoid this should be:
|
Preview doesn't work for pull requests from forks, which is the case for #1356. So at the moment we can't rely on always having the preview deployed |
I've changed the title to reflect that the blog is back but the root problem is that CI should prevent breaking the site by merging an apparently passing pull request. |
I'm grepping the logs for "Franklin Warning" and this works well for a year already (https://github.com/rikhuijzer/huijzer.xyz/blob/main/.github/workflows/CI.yml). That's the easy solution. If you want to make things really reliable, fix tlienart/Franklin.jl#785 or write your own logic and tests to verify that Julia exits with exit code 1 when there is a problem in the Markdown/embedded Julia code. |
@rikhuijzer would you mind maybe opening a PR here with your warning grepper? I'll eventually get to fixing 785 but not sure when and this seems pretty important :) thanks! |
https://www.julialang.org/blog/ is currently a 404
The text was updated successfully, but these errors were encountered: