-
Notifications
You must be signed in to change notification settings - Fork 43
43 lines (39 loc) · 1.05 KB
/
ruby.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
name: Ruby CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
exclude:
- ruby-version: 2.3.8
gemfile: gemfiles/activesupport_6.gemfile
- ruby-version: 2.4.10
gemfile: gemfiles/activesupport_6.gemfile
gemfile:
- gemfiles/activesupport_5.gemfile
- gemfiles/activesupport_6.gemfile
ruby-version:
- 2.3.8
- 2.4.10
- 2.5
- 2.6
- 2.7
- '3.0' # Due to https://github.com/actions/runner/issues/849, we have to use quotes for '3.0'
env:
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
steps:
- uses: actions/checkout@v2
- name: Set up Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
- name: Install dependencies
run: bundle install
- name: Run tests
run: bundle exec rake spec_all