From f754cb7ceae804eb31d35dc49067c71ec52e44cf Mon Sep 17 00:00:00 2001 From: Peter Cai <222655+pcai@users.noreply.github.com> Date: Wed, 17 Jul 2024 18:00:47 +0000 Subject: [PATCH] test both faradays --- .github/workflows/test.yml | 7 ++++++- Gemfile | 11 ++++++----- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 046a2e0..9d9f29a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -6,7 +6,7 @@ on: jobs: test: - name: "Ruby ${{ matrix.ruby }}" + name: "Ruby ${{ matrix.ruby }} + Faraday ${{ matrix.faraday }}" runs-on: ubuntu-latest strategy: @@ -18,6 +18,11 @@ jobs: - "3.1" - "3.0" - "jruby-head" + faraday: + - "~> 1.0" + - "~> 2.0" + env: + FARADAY_VERSION: ${{ matrix.faraday }} steps: - uses: actions/checkout@v4 diff --git a/Gemfile b/Gemfile index e0cf5a7..9909344 100644 --- a/Gemfile +++ b/Gemfile @@ -3,12 +3,13 @@ source 'https://rubygems.org' gemspec -gem "rake", "~> 13.0" -gem "rspec", "~> 3.7.0" -gem "httpi" +gem 'faraday', ENV['FARADAY_VERSION'] || '~> 2.8' +gem 'httpi' +gem 'rake', '~> 13.0' +gem 'rspec', '~> 3.7.0' -gem 'simplecov', require: false -gem 'method_profiler', require: false gem 'coveralls', '~> 0.8', require: false +gem 'method_profiler', require: false +gem 'simplecov', require: false gem 'rubocop-packaging', require: false