diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 4829482..893d461 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -10,6 +10,11 @@ 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: @@ -17,9 +22,13 @@ jobs: - "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 diff --git a/.gitignore b/.gitignore index 7e90b76..f5d944c 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ *.gem /Gemfile.lock +/gemfiles/*.lock vendor/ruby example/vendor diff --git a/gemfiles/faraday-0.gemfile b/gemfiles/faraday-0.gemfile new file mode 100644 index 0000000..aba7f74 --- /dev/null +++ b/gemfiles/faraday-0.gemfile @@ -0,0 +1,4 @@ +source 'https://rubygems.org' +gemspec path: '..' + +gem 'faraday', '~> 0' diff --git a/gemfiles/faraday-1.gemfile b/gemfiles/faraday-1.gemfile new file mode 100644 index 0000000..1316486 --- /dev/null +++ b/gemfiles/faraday-1.gemfile @@ -0,0 +1,4 @@ +source 'https://rubygems.org' +gemspec path: '..' + +gem 'faraday', '~> 1' diff --git a/gemfiles/faraday-2.gemfile b/gemfiles/faraday-2.gemfile new file mode 100644 index 0000000..77e3e3f --- /dev/null +++ b/gemfiles/faraday-2.gemfile @@ -0,0 +1,4 @@ +source 'https://rubygems.org' +gemspec path: '..' + +gem 'faraday', '~> 2'