-
-
Notifications
You must be signed in to change notification settings - Fork 20
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: Add link checker & refactor two files into one #266
Conversation
…H (429 tarpitting) #250
…s into 259-add-link-checker-to-ci
…for master, add test alerts to my own private channel #259
@mrjones-plip do you still need a review here. I have some questions on this section that was deleted. - name: Install Node depencies
uses: actions/setup-node@v1
with:
node-version: '12.x'
- run: npm install
- run: npm install -g postcss-cli
- run: npm i -D autoprefixer |
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.
Reviewing the readme only, as Alex will review the rest.
Great to have this change! I've left comments inline to try to clarify the content a bit.
@nomulex - yes, I'd love a technical review please! Marc said he'd review my updates to the readme. Per your question, those lines to install node dependencies weren't deleted, they were moved here. As well, I reformatted them into a single, multi-line |
Co-authored-by: Marc Abbyad <[email protected]>
Co-authored-by: Marc Abbyad <[email protected]>
Great @mrjones-plip . I see that hugo build now only applies to the master branch. I recall the initial design requirement was for it to happen for all branches as put here and deploy was for master only. The idea was to detect build failures early enough. If this is no longer needed then everything else looks great. Nice Job! |
@nomulex - thanks for the review! If you look at line 10 you'll see we actually apply this to all branches. And then from line 52 on, we only apply to master using - name: Master Branch Only - Install Node 12.x
if: ${{ github.ref == 'refs/heads/master' }}
uses: actions/setup-node@v1
with:
node-version: '12.x' The effect is that every commit to not master will always have the build checked, including the new
Awesome, thanks thanks! If it all looks good and my explanation above makes sense, feel free to mark this review as complete. |
Ah - I see, thanks for clarifying! Actually the npm dependencies are not needed to run If I'm still missing something (sorry if so!), maybe it'd be easier to hop on a google meet call to sort it out real time? That said, I see it's late where you are, so this can wait 'til tomorrow if need be! No big rush on this. |
@abbyad - I think all the changes you requested to the |
@mrjones-plip, I think you make a good point here: #266 (comment) The instructions listed in the README are for devs... but it is not clear why and how the current headers relate. @MaxDiz what do you think about restructuring it as part of another issue? |
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.
The readme looks good from my side - nice work!
I actually wonder, since we have developer instructions in our docs, if we should add more to the current "Getting Started" section there? We don't explicitly call out the difference between making edits on GH directly (or in your own fork) vs setting up hugo locally. So yeah, my vote would be to spin up a new ticket to spice up the the Basics section to include this. Or, yeah, the readme ;) |
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.
LGTM
@garethbowen , @abbyad & @nomulex - Much thanks for all your help with this PR! The first full build against master seemed to go OK! |
created a new issue: #275 based on comment above. Feel free to add to it |
See #259
This PR does a number of things:
muffet.sh
to normalize how we runmuffet
both in GH Actions and for local dev editsbuild-any.branch.yml
intoci.yml
by usingif
statements in theci.yml
file. This allows us to not have the complexity of muffet et al. in multiple locationsci.yml
to have a more standardized format with each step having a name, no longer isolatedrun
calls and some other nicetiesmuffet
locally (tl;dr install go, install muffet, run hugo server, run muffet script)For QA/Code reivew
muffet.sh
script runs locally with out issue. This includes not getting 429 errors (too many requests) from github and running in under ~120 seconds.hugo server
and passmuffet.sh
. it should not push live to GH pageshugo --minify
build call and then push live to GH Pages docs siteI've done a bunch of testing (say hello to my bazillion debug/test commits below) such that I think this is fine to just merge to master (after QA/review of course), but I'm open to more testing techniques. I suspect the worst scenario is that it pushes to master, thus live, when we don't want, so pay special attention to this stanzy in the
ci.yml
: