-
Notifications
You must be signed in to change notification settings - Fork 54
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
Chore/wireframe preview ci #2026
Conversation
Hi @glenrobson + @hadro! This is a massive and somewhat invasive PR – apologies! I'll explain what's happening below and, if/when it's approved, I'll abstract the Rake tests out of this repo and move them into the theme repo (or a "IIIF/site-tests" repo – whichever you prefer). But before that, I think this is a good time to pause and get your feedback. Major changes:
Please take your time playing around with the branch + asking questions – I know it's a lot. I'll switch over to UI features in the meantime. |
Thanks @mnyrop, this is sounding great. Ill do a deep dive tonight and will get back to you with questions. |
I've been through the GitHub actions file and Rakefile and its looking great. A lot cleaner than the previous way of doing it. I can also see how to create a One question I came up with, was have we lost the JSON validation for the API site? This would only run for the API site so maybe something that wouldn't go into the theme. If we want to re-add it should we add the following line back ( Line 21 in 6d29fdd
scripts directory question.
Also the |
Sorry one more thing, in the api/.github/workflows/preview.yml Line 21 in 7caf335
Does this action store the branch name in |
Hi Glen, I'll reply 1 by 1:
Yes, I can re-add this as a separate task in the API repo Rakefile only. It would be great to rewrite it in Ruby & fold it into the same RSpec workflow, but that can be a stretch goal at a later point.
Yes, that's totally possible. I'll keep it in the API Rakefile and can namespace it as
No, sorry! That comment should be on the line below–I must've messed it up when I was reworking the white space. I'll fix it a quick commit on this branch. That said, in the So to-dos for me on this branch include:
(EDIT: the above are completed in #2031) Are there other to-dos you can think of?
|
rebase from wireframe
I agree it would be nice to move the JSON check to Ruby but it could be done later. Regarding your other questions:
Were you thinking of something like:
so that we can use the variable further down in the YAML file? If so yes that would be great to remove one of the actions and simplify and possibly quicken the build process.
I lean to having the shared tasks in the theme but open to suggestions. I think less repos is generally desirable and I can't see we would use them outside of the theme. I'm hoping we can use the theme for all of the Jekyll sites we run. |
@glenrobson re: the Should I correct the merge conflict below and merge now so that I can work on moving shared tasks/tests out to the theme after that. |
I've fixed the conflict. Did you want to merge then move the rake tasks to the theme or move the rake tasks then merge? I'm fine with either option and if its the first feel free to merge this into Wireframe. |
testing a whole slew of changes to make CI and preview builds more flexible.
very experimental – don't merge!