⬆️ support for faraday 2 #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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: | |
runs-on: ubuntu-latest | |
name: Ruby ${{ matrix.ruby }} w/ ${{ matrix.gemfile }} | |
strategy: | |
fail-fast: false | |
matrix: | |
ruby: | |
- "2.6" | |
- "2.7" | |
- "3.0" | |
- "3.1" | |
# - "3.2" | |
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.4" | |
# gemfile: "activesupport-4.1" | |
# - ruby: "2.4" | |
# gemfile: "activesupport-4.2" | |
# - ruby: "2.4" | |
# gemfile: "activesupport-5.0" | |
# - ruby: "2.4" | |
# gemfile: "activesupport-5.1" | |
# - ruby: "2.4" | |
# gemfile: "activesupport-6.0" | |
# - ruby: "2.5" | |
# gemfile: "activesupport-4.1" | |
# - ruby: "2.5" | |
# gemfile: "activesupport-4.2" | |
# - ruby: "2.5" | |
# gemfile: "activesupport-5.0" | |
# - ruby: "2.5" | |
# gemfile: "activesupport-5.1" | |
# - ruby: "2.5" | |
# gemfile: "activesupport-5.2" | |
# - ruby: "2.6" | |
# gemfile: "activesupport-4.1" | |
# - ruby: "2.6" | |
# gemfile: "activesupport-4.2" | |
# - ruby: "2.6" | |
# gemfile: "activesupport-5.0" | |
# - ruby: "2.6" | |
# gemfile: "activesupport-5.1" | |
# - ruby: "2.6" | |
# gemfile: "activesupport-5.2" | |
# - ruby: "2.6" | |
# gemfile: "activesupport-6.0" | |
# - ruby: "2.6" | |
# gemfile: "activesupport-7.0" | |
# - ruby: "2.6" | |
# gemfile: "activesupport-7.1" | |
# - ruby: "2.7" | |
# gemfile: "activesupport-4.1" | |
# - ruby: "2.7" | |
# gemfile: "activesupport-4.2" | |
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 |