Skip to content

Commit

Permalink
test multiple faraday versions
Browse files Browse the repository at this point in the history
  • Loading branch information
balvig committed Mar 30, 2022
1 parent fc3cbb4 commit 0974c81
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,14 @@ jobs:
type: string
rails_version:
type: string
faraday_version:
type: string
docker:
- image: cimg/ruby:<< parameters.ruby_version >>
executor: ruby/default
environment:
RAILS_TEST_VERSION: << parameters.rails_version >>
FARADAY_TEST_VERSION: << parameters.faraday_version >>
EUID: 0 # not sure why this is needed, but sudo npm fails
steps:
- checkout
Expand Down Expand Up @@ -56,23 +59,27 @@ workflows:
parameters:
rails_version: ["~> 4.0"]
ruby_version: ["2.6.6"]
faraday_version: ["< 2.0", "< 3.0"]
- build:
matrix:
alias: Rails 5
parameters:
rails_version: ["~> 5.0"]
ruby_version: ["2.6.6", "2.7.2"]
faraday_version: ["< 2.0", "< 3.0"]
- build:
matrix:
alias: Rails 6
parameters:
rails_version: ["~> 6.0"]
ruby_version: ["2.6.6", "2.7.2", "3.0.0"]
faraday_version: ["< 2.0", "< 3.0"]
- build:
matrix:
alias: Rails 7
parameters:
rails_version: ["~> 7.0"]
ruby_version: ["2.7.2", "3.0.0"]
faraday_version: ["< 2.0", "< 3.0"]
- coverage:
requires: ["Rails 4", "Rails 5", "Rails 6", "Rails 7"]
2 changes: 1 addition & 1 deletion spyke.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Gem::Specification.new do |spec|

spec.add_dependency 'activesupport', ENV.fetch('RAILS_TEST_VERSION', '>= 4.0.0')
spec.add_dependency 'activemodel', ENV.fetch('RAILS_TEST_VERSION', '>= 4.0.0')
spec.add_dependency 'faraday', '>= 0.9.0', '< 2.0'
spec.add_dependency 'faraday', '>= 0.9.0', ENV.fetch('FARADAY_TEST_VERSION', '< 2.0')
spec.add_dependency 'faraday_middleware', '>= 0.9.1', '< 2.0'
spec.add_dependency 'addressable', '>= 2.5.2'

Expand Down

0 comments on commit 0974c81

Please sign in to comment.