forked from restforce/restforce
-
Notifications
You must be signed in to change notification settings - Fork 0
27 lines (27 loc) · 1.07 KB
/
faraday.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
name: 'Test against supported Faraday minor versions'
on: push
jobs:
lint-and-test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
# Normally, we only test the most recent patch version for any given minor version.
# For v2.0.x, we test v2.0.0 and v2.0.1 because v2.0.0 has a special behaviour where
# the Net::HTTP adapter is not included. See
# https://github.com/lostisland/faraday/blob/main/UPGRADING.md#faraday-20.
faraday_version: ['1.1.0', '1.2.0', '1.3.1', '1.4.1', '1.5.1', '1.6.0', '1.7.2', '1.8.0', '1.9.3', '1.10.0', '2.0.0', '2.0.1', '2.1.0', '2.2.0', '2.3.0', '2.4.0', '2.5.0', '2.6.0']
env:
FARADAY_VERSION: ~> ${{ matrix.faraday_version }}
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Ruby ${{ matrix.ruby_version }}
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: 3.1
- name: Install dependencies
run: bundle install
- name: Run RSpec tests
run: bundle exec rspec