-
Notifications
You must be signed in to change notification settings - Fork 86
52 lines (48 loc) · 1.32 KB
/
main.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Test Ruby
on:
push:
branches:
- master
pull_request:
jobs:
rspec:
runs-on: ubuntu-latest
env:
BUNDLE_JOBS: 4
BUNDLE_RETRY: 3
FARADAY_VERSION: ${{ matrix.faraday }}
FARADAY_ADAPTER: ${{ matrix.faraday_adapter }}
ACTIVESUPPORT_VERSION: ${{ matrix.activesupport }}
strategy:
fail-fast: false
matrix:
ruby: ['2.4', '2.5', '2.6', '2.7', '3.0', '3.1']
faraday_adapter: [net_http, em_http]
faraday: ['~> 0.8.0', '~> 0.15.0', '~> 0.17.3', '~> 1.0', '~> 2.0']
exclude:
# Faraday 2 requires Ruby 2.6+
- ruby: '2.5'
faraday: '~> 2.0'
- ruby: '2.4'
faraday: '~> 2.0'
# Ruby 3.0+ requires Faraday >= 0.17.3
- ruby: '3.0'
faraday: '~> 0.8.0'
- ruby: '3.0'
faraday: '~> 0.15.0'
- ruby: '3.1'
faraday: '~> 0.8.0'
- ruby: '3.1'
faraday: '~> 0.15.0'
# faraday-em_http does not support Faraday 2.0+
- faraday: '~> 2.0'
faraday_adapter: em_http
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run RSpec
run: bundle exec rspec