Skip to content

Commit

Permalink
Merge pull request #116 from bquorning/run-ci-with-different-versions…
Browse files Browse the repository at this point in the history
…-of-faraday

Run CI with different versions of Faraday
  • Loading branch information
arthurnn authored Mar 4, 2024
2 parents caf2381 + e036954 commit c9c8b5e
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,25 @@ jobs:
test:
runs-on: ubuntu-latest

name: Ruby ${{ matrix.ruby_version }} with ${{ matrix.gemfile }}

env:
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile

strategy:
matrix:
ruby_version:
- "2.7"
- "3.0"
- "3.1"
- "head"
gemfile:
- "faraday-0"
- "faraday-1"
- "faraday-2"

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up Ruby
uses: ruby/setup-ruby@v1
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
*.gem

/Gemfile.lock
/gemfiles/*.lock

vendor/ruby
example/vendor
4 changes: 4 additions & 0 deletions gemfiles/faraday-0.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
source 'https://rubygems.org'
gemspec path: '..'

gem 'faraday', '~> 0'
4 changes: 4 additions & 0 deletions gemfiles/faraday-1.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
source 'https://rubygems.org'
gemspec path: '..'

gem 'faraday', '~> 1'
4 changes: 4 additions & 0 deletions gemfiles/faraday-2.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
source 'https://rubygems.org'
gemspec path: '..'

gem 'faraday', '~> 2'

0 comments on commit c9c8b5e

Please sign in to comment.