Skip to content

CI: add Ruby 3.3 to the test matrix #37

CI: add Ruby 3.3 to the test matrix

CI: add Ruby 3.3 to the test matrix #37

Workflow file for this run

---
name: tests
on: [ push, pull_request ]
jobs:
test:
name: Test (Ruby ${{ matrix.ruby }} on ${{ matrix.gemfile }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby: [ '2.4', '2.5', '2.6', '2.7', '3.0', '3.1', '3.2', '3.3' ]
gemfile: [ 'faraday_1.10.0', 'faraday_2.1.0', 'faraday_2.2.0', 'faraday_2.3.0', 'jwt_1.5.6', 'jwt_2.2.3', 'jwt_2.3.0', 'jwt_2.4.1' ]
exclude:
- { ruby: '2.4', gemfile: 'faraday_2.1.0' }
- { ruby: '2.4', gemfile: 'faraday_2.2.0' }
- { ruby: '2.4', gemfile: 'faraday_2.3.0' }
- { ruby: '2.4', gemfile: 'jwt_2.4.1' }
- { ruby: '2.5', gemfile: 'faraday_2.1.0' }
- { ruby: '2.5', gemfile: 'faraday_2.2.0' }
- { ruby: '2.5', gemfile: 'faraday_2.3.0' }
- { ruby: '3.0', gemfile: 'faraday_1.10.0' }
- { ruby: '3.1', gemfile: 'faraday_1.10.0' }
- { ruby: '3.2', gemfile: 'faraday_1.10.0' }
- { ruby: '3.3', gemfile: 'faraday_1.10.0' }
env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
steps:
- uses: actions/checkout@v4
- name: Set up Ruby ${{ matrix.ruby }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: RSpec
run: bundle exec rspec