-
-
Notifications
You must be signed in to change notification settings - Fork 403
79 lines (75 loc) · 2.56 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: Ruby
on:
# Trigger the workflow on push or pull request,
# but only for the master branch
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
env:
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
strategy:
fail-fast: false
matrix:
ruby_version: ["3.0", 2.7, 2.6, 2.5, 2.4, 2.3, jruby]
gemfile:
[
Gemfile,
gemfiles/Gemfile.rails-5.0.x,
gemfiles/Gemfile.rails-5.1.x,
gemfiles/Gemfile.rails-5.2.x,
gemfiles/Gemfile.rails-6.0.x,
gemfiles/Gemfile.rails-6.1.x,
gemfiles/Gemfile.rails-main,
]
exclude:
# Ruby 3.x is not supported by Rails 5.2.x
- ruby_version: 3.0
gemfile: gemfiles/Gemfile.rails-5.2.x
# Ruby 3.x is not supported by Rails 5.1.x
- ruby_version: 3.0
gemfile: gemfiles/Gemfile.rails-5.1.x
# Ruby 3.x is not supported by Rails 5.0.x
- ruby_version: 3.0
gemfile: gemfiles/Gemfile.rails-5.0.x
# Ruby 2.6.x is not supported by Rails main
- ruby_version: 2.6
gemfile: gemfiles/Gemfile.rails-main
# Ruby 2.5.x is not supported by Rails main
- ruby_version: 2.5
gemfile: gemfiles/Gemfile.rails-main
# Ruby 2.4.x is not supported by Rails main
- ruby_version: 2.4
gemfile: gemfiles/Gemfile.rails-main
# Ruby 2.4.x is not supported by Rails 6.1.x
- ruby_version: 2.4
gemfile: gemfiles/Gemfile.rails-6.1.x
# Ruby 2.4.x is not supported by Rails 6.0.x
- ruby_version: 2.4
gemfile: gemfiles/Gemfile.rails-6.0.x
# Ruby 2.3.x is not supported by Rails 6.1.x
- ruby_version: 2.3
gemfile: gemfiles/Gemfile.rails-6.1.x
# Ruby 2.3.x is not supported by Rails main
- ruby_version: 2.3
gemfile: gemfiles/Gemfile.rails-main
# Ruby 2.3.x is not supported by Rails 6.0.x
- ruby_version: 2.3
gemfile: gemfiles/Gemfile.rails-6.0.x
# JRuby is not supported by Rails main
- ruby_version: jruby
gemfile: gemfiles/Gemfile.rails-main
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby_version }}
bundler-cache: true # 'bundle install' and cache
- name: Build and test with Rake
run: bundle exec rake