-
Notifications
You must be signed in to change notification settings - Fork 89
38 lines (34 loc) · 868 Bytes
/
main.yml
File metadata and controls
38 lines (34 loc) · 868 Bytes
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
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: ['3.2', '3.3', '3.4']
faraday_adapter: [net_http, em_http]
faraday: ['~> 1.0', '~> 2.0']
exclude:
# faraday-em_http does not support Faraday 2.0+
- faraday: '~> 2.0'
faraday_adapter: em_http
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run RSpec
run: bundle exec rspec