-
Notifications
You must be signed in to change notification settings - Fork 1.5k
46 lines (41 loc) · 1.09 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
name: Ruby specs
on: [push, pull_request]
jobs:
build:
name: Ruby specs
runs-on: ${{ matrix.os }}
continue-on-error: ${{ endsWith(matrix.ruby, 'head') || matrix.ruby == 'debug' || matrix.experimental }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
ruby: [
2.4,
2.5,
2.6,
2.7
]
gemfile: [
"gemfiles/Gemfile-rails.5.2.x",
"gemfiles/Gemfile-rails.6.0.x"
]
exclude:
- ruby: "2.4"
gemfile: gemfiles/Gemfile-rails.6.0.x
experimental: [false]
include:
- ruby: 2.7
os: ubuntu-latest
gemfile: gemfiles/Gemfile-rails-edge
experimental: true
env:
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
rubygems: ${{ matrix.ruby < '2.6' && 'default' || 'latest' }}
- name: Ruby specs
run: bundle exec rake test