forked from roidrage/lograge
-
Notifications
You must be signed in to change notification settings - Fork 7
64 lines (52 loc) · 1.48 KB
/
ci.yml
File metadata and controls
64 lines (52 loc) · 1.48 KB
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
on:
push:
branches: [master]
pull_request:
jobs:
ci:
runs-on: ubuntu-latest
continue-on-error: ${{ endsWith(matrix.ruby, 'head') || matrix.gemfile == 'gemfiles/rails_edge.gemfile' }}
strategy:
matrix:
ruby:
# MRI
- head
- "3.1.0"
- "3.0"
- "2.7"
# JRuby
- jruby-head
- jruby-9.3
- jruby-9.2
# TruffleRuby
- truffleruby-head
- truffleruby-21.3
gemfile:
- Gemfile
- gemfiles/rails_edge.gemfile # 7.1.0.alpha
- gemfiles/rails_6.0.gemfile
- gemfiles/rails_5.2.gemfile
# Include additional ruby/gemfile combinations:
include:
# NOTE(ivy): Rails 7 requires Ruby version >= 2.7
- ruby: "2.6"
gemfile: Gemfile
- ruby: "2.6"
gemfile: gemfiles/rails_6.0.gemfile
- ruby: "2.6"
gemfile: gemfiles/rails_5.2.gemfile
exclude:
# NOTE(ivy): Rails 7 requires Ruby version >= 2.7
- ruby: jruby-9.3
gemfile: gemfiles/rails_edge.gemfile
- ruby: jruby-9.2
gemfile: gemfiles/rails_edge.gemfile
env:
BUNDLE_GEMFILE: ${{ github.workspace }}/${{ matrix.gemfile }}
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- run: bundle exec rake