Skip to content

Commit

Permalink
build: add different faraday versions to build matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
irphilli committed Feb 25, 2022
1 parent 2bfebc5 commit 283e550
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/ruby-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,17 @@ on:
jobs:
test:

name: Specs - Ruby ${{ matrix.ruby }} ${{matrix.gemfile}}
runs-on: ubuntu-latest
env:
CC_TEST_REPORTER_ID: 2a6849be8214739deef0090b810b945ce9a550a4d8279d242cb03242d1ad53c5
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile

strategy:
matrix:
gemfile:
- faraday-1
- faraday-2
ruby-version:
- "3.1"
- "3.0"
Expand All @@ -35,4 +40,4 @@ jobs:
run: bundle exec rake test
- name: Upload Coverage
uses: paambaati/[email protected]
if: matrix.ruby-version == '3.1'
if: matrix.ruby-version == '3.1' && matrix.gemfile == 'faraday-2'
5 changes: 5 additions & 0 deletions gemfiles/faraday-1.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
source 'https://rubygems.org'

gem 'faraday', '~> 1.10'

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

gem 'faraday', '~> 2.2'

gemspec path: '../'

0 comments on commit 283e550

Please sign in to comment.