-
Notifications
You must be signed in to change notification settings - Fork 11
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
DRAFT: Add gh action to deploy to pages and run test #62
base: main
Are you sure you want to change the base?
Conversation
I just saw there are problems with loading from lib, which needs fixing. We might need to move the lib folder into |
@jamesdiacono could you please look into ways to restructure the deployment directories so all the proper components can be found by the webserver, etc.? I know we have a bunch of node.js and deno stuff that I assume would have similar issues. Also, all the stuff in |
Hi @hardliner66 , welcome to the uFork team! There's a lot going on in this PR. Perhaps we should get on a call to discuss? Or can we discuss it here? |
Oh I see, the bulk of the changes result from moving the I have always considered the Both There are also some very minor things I'd like to comment on:
#!/bin/bash
set -euo pipefail
...other commands...
|
Yeah, I moved the files in a separate commit so it's easier to undo, if there's a better solution. But I wanted to test it with GitHub pages to see if it works now. Having the ufork-wasm dir be the root is good for local testing, but I don't think we should just deploy a whole bunch of unnecessary files. I would prefer to split that stuff even more, because right now it's not clear what's needed or not unless you already know the project. I also prefer BASH_SOURCE everywhere, where the script is location dependent. I understand that the convention works for now, but by using it it will even work for new contributors who don't have that implicit knowledge. The rest I'll check when I come home, as I'm at my way to work right now. We can plan a meeting if you want as well. What's your timezone? |
I don't really see a problem with deploying the whole of
Surely we can specify that in the GitHub action config? I am GMT+1, but I've been going to bed at about 8pm (and getting up at 4am). What time do you get home from work? |
I'm gmt +1 as well right now (I think) but I have a doctors appointment so I'm not sure when I'll be home. Tomorrow I should be home by 6pm |
I think a group-call would be a good idea, but let's coordinate via email. I'll send a group message to start. Originally, I created the
The project-family is growing and naturally accumulating complexity. Now is a good time to discuss project structures to support further growth. |
I've merged @jamesdiacono restructuring increment (PR #64), which was based on this PR and our previous discussion. The C-based protoype has been moved into its own repository. The What additional changes are required to prepare the uFork core for publication on crates.io? Perhaps I separate issue/PR would be appropriate. |
@dalnefre Sorry for the late response, I'm gonna have a look at the changes and make the appropriate changes and create a separate PR for publishing to crates.io. |
@hardliner66 There's no schedule here. We appreciate your efforts when you have the time to contribute! I expect that some |
The comment block describing the Line 205 in 0c96d6f
|
Fixes #58
To fix the mime-type problem I had to add:
I added two workflows.
Tests: Run on each merge request and when called from another workflow
Pages: Run on each push on the main branch (should include MR merges)
The pages workflow uses the tests workflow to check if the code is valid.
In the future it might be more reasonable to create proper releases and only deploy when a new release is made. That way the web version had some stability guarantees. But that's not a requirement right now.
@jamesdiacono The deno tests return an object with the fields
pass
,lost
andfail
. The only field that's filled on my machine is thelost
field. If this is a failure, can you make sure to make the test suite return a non-zero exit code? If that's okay, then nothing needs to be done for it to work.