toland / patron

Ruby HTTP client based on libcurl
http://toland.github.com/patron/
MIT License
541 stars 74 forks source link

Migrate CI to GitHub actions #186

Closed petergoldstein closed 2 years ago

petergoldstein commented 2 years ago

Migrate CI to GitHub Actions now that Travis CI.org is inactive.

In addition to adding a basic ci.yml file, I needed to make several other changes:

  1. Loosen the development dependency on rake to allow more recent versions
  2. Wrap the use of YAML::load in the specs in a helper function that allows us to explicitly use YAML::safe_load with OpenStruct as a permitted class for Ruby 3.1 and up
  3. Replace File.exists? with File.exist?

Ruby head is still failing because of a process start race condition between the PatronTestServer and the actual specs. In the interest of getting something working quickly I temporarily removed ruby-head. All other Rubies in the CI file are green.

julik commented 2 years ago

Looks amazing! thank you! @toland I'm going to merge but might need your help later if I don't have access to GH actions for this repo.