-
Notifications
You must be signed in to change notification settings - Fork 42
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
Add GitHub Actions CI support. #64
Conversation
Alright, let's focus on getting this up and running. I untied this patch from #61. I have added Ubuntu only and I'm using |
If someone could add the needed secrets on the repo secrets page, let me know what names you used and I'll adapt the patch so that it uses them when running tests. |
according to https://help.github.com/en/articles/virtual-environments-for-github-actions#github_token-secret we might be able to make use of
Then if you can run some bash before running the tests, try this (for Linux):
The awkward bit is the |
Alright, We need to add and pass the exact variables including the user. |
if that doesn't work, the alternatives i see are: (1) generate a token for an account owned by the org or (2) modify ghutils to directly use the |
? |
@rvagg does ghauth pick up user variables about user and token or does it need a config explicitly? I will try this later, but I'm on Windows currently. |
@XhmikosR it picks it up from a config file that looks like |
@rvagg so as things are right now, we need tho create these configs. Would it be possible to make ghauth use env vars too? I think it would simplify things a lot. Regardless, I'll experiment with this and let you know how it goes. |
yes, it would certainly simplify the CI case .. I'm not sole maintainer so any such PR will need discussion. |
08185bf
to
b3e6545
Compare
It works! The path is |
9adf48b
to
f8423b7
Compare
Only thing I don't know is if this will work for forks. I guess we'll find out later. /CC @targos for a quick review too :) |
I added Windows too. I don't think the shell used on Windows demonstrates the failures I had locally, though, because CI is passing even with the old gitexec. That being said, this should better than nothing. |
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.
nice work!
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.
Nice!
npm i
I also plan to add Windows testing later-- DONE, but I might need to drop it from here and tackle it later separately