-
Notifications
You must be signed in to change notification settings - Fork 226
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
Use Github Actions for CI #276
Conversation
Would also recommend to add a .github/dependabot.yml to get automatic pull requests when used github actions or used rubygems are updated, see https://github.com/RemedyIT/ridl/blob/master/.github/dependabot.yml for an example |
Hey thanks for the PR! A couple questions:
|
In my experience the integration between github and actions is much better as travis, it is faster, more platforms, more parallel workers speeding up things, and as last, actions are used more and more |
See https://github.com/ruby/setup-ruby for the ruby versions that can be used on actions |
@joshuacronemeyer travis has been aquired last year and shut down travis.org (the free offer for opensource) now repos have been migrated to travis-ci.com, opensource projects have to ask for free credit to keep the build running. So the main pros for github action is that you won't have to ask for the free credits |
This is a new method added in Ruby 2.7. It's designed to patch old code to handle the new keyword argument changes in Ruby 3.0. This will no-op on older versions. This is needed due to the method signature of I've already monkeypatched this in a library to fix the specs on Ruby 3.1: https://github.com/instacart/makara/blob/9b34fee85d6a80c9c9f9778a6a6691e28e190b44/spec/spec_helper.rb#L22-L27 Edit: Full details of the Ruby change here |
@mlarraz can you please split this into 2 PRs? I'm enabling ruby-head on our travis build so we can focus on getting the ruby 3.1 support, but I'm also interested in changing our CI over. My travis builds yesterday were taking 30 minutes, so if we could speed up our build with GitHub actions that would be great. I just want to treat these things as separate issues. |
Done |
@mlarraz thanks. Can you also bring back your ruby 3.1 fix as a separate PR? There is another PR, but it has a problem so I don't mind having another. |
Sure, but can you merge this as is? Should not be blocked by anything I think |
FYI #288 |
I'm a bit paranoid that i'll need to do something in the GitHub settings for this repo that I don't have permission to do... and since this also deletes our travis stuff then we'll be without a build. I'd prefer to do a release to get stuff working for ruby-head folks and then we can fool around with the build and dependabot. |
Got it, I just added back the |
There are no special permissions needed to use github actions, at the moment you merge this PR the actions automatically run |
Also tests against
ruby-head
and fixes a failure on it.The
ruby/setup-ruby
action doesn't support Ruby 1.9 or 2.0, so dropping those. If support is still necessary, I can explore workarounds.Sample build: https://github.com/mlarraz/timecop/actions/runs/496778019