-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
1 parent
1067878
commit 4bc6631
Showing
5 changed files
with
98 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Tests | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
ruby-version: [2.4, 2.5, 2.6, 2.7, '3.0', 3.1] | ||
|
||
name: Specs - Ruby ${{ matrix.ruby-version }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install libcurl | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get -y install libcurl4 libcurl4-openssl-dev | ||
- name: Set up Ruby ${{ matrix.ruby-version }} | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby-version }} | ||
bundler-cache: true # 'bundle install' and cache | ||
- name: Run tests | ||
run: bundle exec rake |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.