-
Notifications
You must be signed in to change notification settings - Fork 127
124 lines (124 loc) · 4.06 KB
/
test.yaml
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
name: Test
on: [push, pull_request]
jobs:
test:
strategy:
fail-fast: false
matrix:
gemfile:
- test/rails_5.0.gemfile
- test/rails_5.1.gemfile
- test/rails_5.2.gemfile
- test/rails_6.0.gemfile
- test/rails_6.1.gemfile
- test/rails_6.2.gemfile
- test/rails_edge.gemfile
ruby:
- '3.2'
- '3.1'
- '3.0'
- '2.7'
- '2.6'
- '2.5'
- '2.4'
- '2.3'
- '2.2'
- '2.1'
exclude:
- gemfile: Gemfile
ruby: '2.6'
- gemfile: Gemfile
ruby: '2.5'
- gemfile: Gemfile
ruby: '2.4'
- gemfile: Gemfile
ruby: '2.3'
- gemfile: Gemfile
ruby: '2.2'
- gemfile: Gemfile
ruby: '2.1'
- gemfile: test/rails_edge.gemfile
ruby: '2.6'
- gemfile: test/rails_edge.gemfile
ruby: '2.5'
- gemfile: test/rails_edge.gemfile
ruby: '2.4'
- gemfile: test/rails_edge.gemfile
ruby: '2.3'
- gemfile: test/rails_edge.gemfile
ruby: '2.2'
- gemfile: test/rails_edge.gemfile
ruby: '2.1'
- gemfile: test/rails_6.1.gemfile
ruby: '2.4'
- gemfile: test/rails_6.1.gemfile
ruby: '2.3'
- gemfile: test/rails_6.1.gemfile
ruby: '2.2'
- gemfile: test/rails_6.1.gemfile
ruby: '2.1'
- gemfile: test/rails_6.0.gemfile
ruby: '3.2'
- gemfile: test/rails_6.0.gemfile
ruby: '3.1'
- gemfile: test/rails_6.0.gemfile
ruby: '2.4'
- gemfile: test/rails_6.0.gemfile
ruby: '2.3'
- gemfile: test/rails_6.0.gemfile
ruby: '2.2'
- gemfile: test/rails_6.0.gemfile
ruby: '2.1'
- gemfile: test/rails_5.2.gemfile
ruby: '3.2'
- gemfile: test/rails_5.2.gemfile
ruby: '3.1'
- gemfile: test/rails_5.2.gemfile
ruby: '3.0'
- gemfile: test/rails_5.2.gemfile
ruby: '2.7'
- gemfile: test/rails_5.2.gemfile
ruby: '2.2'
- gemfile: test/rails_5.2.gemfile
ruby: '2.1'
- gemfile: test/rails_5.1.gemfile
ruby: '3.2'
- gemfile: test/rails_5.1.gemfile
ruby: '3.1'
- gemfile: test/rails_5.1.gemfile
ruby: '3.0'
- gemfile: test/rails_5.1.gemfile
ruby: '2.7'
- gemfile: test/rails_5.1.gemfile
ruby: '2.1'
- gemfile: test/rails_5.0.gemfile
ruby: '3.2'
- gemfile: test/rails_5.0.gemfile
ruby: '3.1'
- gemfile: test/rails_5.0.gemfile
ruby: '3.0'
- gemfile: test/rails_5.0.gemfile
ruby: '2.7'
- gemfile: test/rails_5.0.gemfile
ruby: '2.1'
runs-on: ubuntu-latest
env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
steps:
- uses: actions/checkout@v3
- name: Setup Bundler 1.x for Rails 4.x
if: ${{ matrix.gemfile == 'gemfiles/Gemfile-rails-4-1' || matrix.gemfile == 'gemfiles/Gemfile-rails-4-2' }}
run: echo "BUNDLER_VERSION=1.17.3" >> $GITHUB_ENV
- name: Setup Rubygems version as default for Ruby < 2.5
if: ${{ matrix.ruby < '2.5' }}
run: echo "RUBYGEMS_VERSION=default" >> $GITHUB_ENV
- name: Setup Rubygems version as 3.2.3 for Ruby 2.5
if: ${{ matrix.ruby == '2.5' }}
run: echo "RUBYGEMS_VERSION=3.2.3" >> $GITHUB_ENV
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true # runs bundle install and caches installed gems automatically
bundler: ${{ env.BUNDLER_VERSION || 'default' }}
rubygems: ${{ env.RUBYGEMS_VERSION || 'latest' }}
- run: ./test/test_with_railsapp