Skip to content

Commit 8551075

Browse files
committed
Test Faraday 1/2.
1 parent 33e8f8c commit 8551075

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/ruby.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ jobs:
2121
strategy:
2222
matrix:
2323
ruby: [2.7, 3.0, 3.1]
24+
faraday_version: [''] # Defaults to whatever's the most recent version.
25+
include:
26+
- ruby: 2.7
27+
faraday_version: '~> 1.0'
2428
steps:
2529
- uses: actions/checkout@v2
2630

@@ -34,9 +38,13 @@ jobs:
3438

3539
- name: Install dependencies
3640
run: bundle _2.1.1_ install
41+
env:
42+
FARADAY_VERSION: ${{ matrix.faraday_version }}
3743

3844
- name: Run tests
3945
run: bundle exec rake spec
46+
env:
47+
FARADAY_VERSION: ${{ matrix.faraday_version }}
4048

4149
- name: Upload coverage artifacts
4250
uses: actions/upload-artifact@v2

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ source 'https://rubygems.org'
66
gemspec
77

88
gem 'byebug'
9+
gem 'faraday', ENV['FARADAY_VERSION'] if ENV['FARADAY_VERSION'].to_s != ''

0 commit comments

Comments
 (0)