Skip to content

⬆️ support for faraday 2 #13

⬆️ support for faraday 2

⬆️ support for faraday 2 #13

Workflow file for this run

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
name: Ruby
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
permissions:
contents: read
jobs:
test_ruby_version:
runs-on: ubuntu-latest
name: ruby-${{ matrix.ruby }}, ${{ matrix.gemfile }}
strategy:
fail-fast: false
matrix:
ruby:
- "2.6"
- "2.7"
- "3.0"
- "3.1"
- "3.2"
gemfile:
- "faraday_1.x"
- "faraday_2.x"
env:
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Configure bundler
run: |
bundle config path vendor/bundle
- name: Create bundler lockfile
run: |
bundle lock
- uses: actions/cache@v3
with:
# NOTE: Bundler expands the path relative to the gemfile, not the
# current directory.
path: ./gemfiles/vendor/bundle
key: bundled-gems-${{ runner.os }}-ruby-${{ matrix.ruby }}-${{ matrix.gemfile }}-${{ hashFiles( 'gemfiles/*.lock' ) }}
restore-keys: |
bundled-gems-${{ runner.os }}-ruby-${{ matrix.ruby }}-${{ matrix.gemfile }}-
bundled-gems-${{ runner.os }}-ruby-${{ matrix.ruby }}-
- name: Install gems
run: |
bundle install --jobs 4
- name: Run tests
run: bundle exec rake
test_active_support:
needs: test_ruby_version
runs-on: ubuntu-latest
name: ruby-${{ matrix.ruby }}, ${{ matrix.gemfile }}, ${{ matrix.faraday }}
strategy:
fail-fast: false
matrix:
ruby:
- "2.6"
- "2.7"
- "3.0"
- "3.1"
- "3.2"
faraday:
- "faraday_1.x"
- "faraday_2.x"
gemfile:
- "activesupport_3.2"
- "activesupport_4.0"
- "activesupport_4.1"
- "activesupport_4.2"
- "activesupport_5.0"
- "activesupport_5.1"
- "activesupport_5.2"
- "activesupport_6.0"
- "activesupport_6.1"
- "activesupport_7.0"
- "activesupport_7.1"
exclude:
- ruby: "2.6"
gemfile: "activesupport-7.0"
- ruby: "2.6"
gemfile: "activesupport-7.1"
- ruby: "2.7"
gemfile: "activesupport-3.2"
- ruby: "2.7"
gemfile: "activesupport-4.0"
- ruby: "2.7"
gemfile: "activesupport-4.1"
- ruby: "2.7"
gemfile: "activesupport-4.2"
- ruby: "3.0"
gemfile: "activesupport-3.2"
- ruby: "3.0"
gemfile: "activesupport-4.0"
- ruby: "3.0"
gemfile: "activesupport-4.1"
- ruby: "3.0"
gemfile: "activesupport-4.2"
- ruby: "3.1"
gemfile: "activesupport-3.2"
- ruby: "3.1"
gemfile: "activesupport-4.0"
- ruby: "3.1"
gemfile: "activesupport-4.1"
- ruby: "3.1"
gemfile: "activesupport-4.2"
- ruby: "3.2"
gemfile: "activesupport-3.2"
- ruby: "3.2"
gemfile: "activesupport-4.0"
- ruby: "3.2"
gemfile: "activesupport-4.1"
- ruby: "3.2"
gemfile: "activesupport-4.2"
env:
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}_${{ matrix.faraday }}.gemfile
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Configure bundler
run: |
bundle config path vendor/bundle
- name: Create bundler lockfile
run: |
bundle lock
- uses: actions/cache@v3
with:
# NOTE: Bundler expands the path relative to the gemfile, not the
# current directory.
path: ./gemfiles/vendor/bundle
key: bundled-gems-${{ runner.os }}-ruby-${{ matrix.ruby }}-${{ matrix.gemfile }}-${{ matrix.faraday }}-${{ hashFiles( 'gemfiles/*.lock' ) }}
restore-keys: |
bundled-gems-${{ runner.os }}-ruby-${{ matrix.ruby }}-${{ matrix.gemfile }}-${{ matrix.faraday }}
bundled-gems-${{ runner.os }}-ruby-${{ matrix.ruby }}-${{ matrix.gemfile }}-
bundled-gems-${{ runner.os }}-ruby-${{ matrix.ruby }}-
- name: Install gems
run: |
bundle install --jobs 4
- name: Run tests
run: bundle exec rake