Skip to content

Commit

Permalink
redo
Browse files Browse the repository at this point in the history
  • Loading branch information
grosser committed Nov 28, 2020
1 parent 2f91c90 commit 185387d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,29 +39,33 @@ jobs:
build:
needs: [linting]
runs-on: ubuntu-latest
name: build ${{ matrix.ruby }}
strategy:
fail-fast: false
matrix:
ruby: ['2.4', '2.5', '2.6', '2.7', 'head']
ruby: ['2.4', '2.5', '2.6', '2.7']
experimental: [false]
include:
- ruby: head
experimental: true

steps:
- uses: actions/checkout@v1
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}


- name: Install dependencies
run: |
sudo apt-get install libcurl4-openssl-dev
- name: Build
run: |
sudo apt-get install libcurl4-openssl-dev
gem install bundler -v '<2'
bundle install --jobs 4 --retry 3
- name: Test
run: |
bundle exec rake
continue-on-error: ${{ matrix.experimental }}
run: bundle exec rake

5 changes: 3 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ group :test, :development do
gem 'excon', '>= 0.27.4'
gem 'httpclient', '>= 2.2'
gem 'multipart-parser'
# This does not currently work, since there's no .gemspec file in the repo:
gem 'net-http-persistent', (RUBY_VERSION.start_with?('3') ? '>= 3.0' : '~> 3.0'), **(RUBY_VERSION.start_with?('3') ? { github: 'drbrain/net-http-persistent' } : {})
# TODO: remove this once v4 is released
options = (RUBY_VERSION.start_with?('3') ? { github: 'grosser/net-http-persistent', branch: 'grosser/spec' } : {})
gem 'net-http-persistent', (RUBY_VERSION.start_with?('3') ? '>= 3.0' : '~> 3.0'), **options
gem 'patron', '>= 0.4.2', platforms: :ruby
gem 'rack-test', '>= 0.6', require: 'rack/test'
gem 'rspec', '~> 3.7'
Expand Down

0 comments on commit 185387d

Please sign in to comment.