-
Notifications
You must be signed in to change notification settings - Fork 96
77 lines (70 loc) · 1.73 KB
/
ci.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
name: CI
on:
push:
branches:
- 'master'
pull_request:
jobs:
build:
strategy:
matrix:
gemfile:
- '4-2-stable'
- '5-0-stable'
- '5-1-stable'
- '5-2-stable'
- '6-0-stable'
- '6-1-stable'
- 'edge'
ruby:
- '2.4'
- '2.5'
- '2.6'
- '2.7'
- '3.0'
exclude:
- gemfile: '4-2-stable'
ruby: '2.5'
- gemfile: '4-2-stable'
ruby: '2.6'
- gemfile: '4-2-stable'
ruby: '2.7'
- gemfile: '4-2-stable'
ruby: '3.0'
- gemfile: '5-0-stable'
ruby: '2.7'
- gemfile: '5-0-stable'
ruby: '3.0'
- gemfile: '5-1-stable'
ruby: '2.7'
- gemfile: '5-1-stable'
ruby: '3.0'
- gemfile: '5-2-stable'
ruby: '2.7'
- gemfile: '5-2-stable'
ruby: '3.0'
- gemfile: '6-0-stable'
ruby: '2.4'
- gemfile: '6-1-stable'
ruby: '2.4'
- gemfile: 'edge'
ruby: '2.4'
- gemfile: 'edge'
ruby: '2.5'
- gemfile: 'edge'
ruby: '2.6'
fail-fast: false
runs-on: ubuntu-latest
name: ${{ matrix.ruby }} rails-${{ matrix.gemfile }}
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
bundler: ${{ fromJSON('["2", "1"]')[matrix.ruby == '2.4'] }}
- run: bundle exec rake test
env:
BUNDLE_GEMFILE: gemfiles/Gemfile-${{ matrix.gemfile }}
BUNDLE_JOBS: 4
BUNDLE_RETRY: 3