11
11
12
12
jobs :
13
13
lint :
14
- name : lint (${{ matrix.ruby }})
14
+ name : lint (${{ matrix.ruby.name }})
15
15
runs-on : ${{ matrix.os }}
16
16
17
17
timeout-minutes : 15
20
20
fail-fast : false
21
21
22
22
matrix :
23
- ruby : [2.7.2 ]
23
+ ruby : [{ name: 2.7, value: 2.7.2 } ]
24
24
os : [ubuntu-20.04]
25
25
26
26
steps :
36
36
37
37
- uses : ruby/setup-ruby@v1
38
38
with :
39
- ruby-version : ${{ matrix.ruby }}
39
+ ruby-version : ${{ matrix.ruby.value }}
40
40
bundler : none
41
41
42
42
- name : Install a specific rubygems version
52
52
uses : actions/cache@v2
53
53
with :
54
54
path : ${{ env.BUNDLE_PATH }}
55
- key : gems-${{ matrix.os }}-${{ matrix.ruby }}-rails_61-${{ hashFiles('current_gemfile.lock') }}
55
+ key : gems-${{ matrix.os }}-${{ matrix.ruby.name }}-rails_61-${{ hashFiles('current_gemfile.lock') }}
56
56
57
57
- name : Install dependencies
58
58
run : bundle install
83
83
path : coverage/raw.lint.json
84
84
85
85
test :
86
- name : test (${{ matrix.ruby }}, ${{ matrix.deps }})
86
+ name : test (${{ matrix.ruby.name }}, ${{ matrix.deps }})
87
87
runs-on : ${{ matrix.os }}
88
88
89
89
timeout-minutes : 15
@@ -92,21 +92,22 @@ jobs:
92
92
fail-fast : false
93
93
94
94
matrix :
95
- ruby : [2.7.2, 2.6.6]
95
+ ruby : [{ name: 2.7, value: 2.7.2 }, { name: 2.6, value: 2.6.6 }]
96
+
96
97
os : [ubuntu-20.04]
97
98
98
99
deps : [rails_52, rails_60, rails_61, rails_61_turbolinks, rails_61_webpacker]
99
100
100
101
include :
101
- - ruby : 2.5.8
102
+ - ruby : { name: 2.5, value: 2.5.8 }
102
103
os : ubuntu-20.04
103
104
deps : rails_52
104
105
105
- - ruby : 2.5.8
106
+ - ruby : { name: 2.5, value: 2.5.8 }
106
107
os : ubuntu-20.04
107
108
deps : rails_60
108
109
109
- - ruby : 2.5.8
110
+ - ruby : { name: 2.5, value: 2.5.8 }
110
111
os : ubuntu-20.04
111
112
deps : rails_61
112
113
@@ -130,7 +131,7 @@ jobs:
130
131
131
132
- uses : ruby/setup-ruby@v1
132
133
with :
133
- ruby-version : ${{ matrix.ruby }}
134
+ ruby-version : ${{ matrix.ruby.value }}
134
135
bundler : none
135
136
136
137
- name : Install a specific rubygems version
@@ -146,7 +147,7 @@ jobs:
146
147
uses : actions/cache@v2
147
148
with :
148
149
path : ${{ env.BUNDLE_PATH }}
149
- key : gems-${{ matrix.os }}-${{ matrix.ruby }}-${{ matrix.deps }}-${{ hashFiles('current_gemfile.lock') }}
150
+ key : gems-${{ matrix.os }}-${{ matrix.ruby.value }}-${{ matrix.deps }}-${{ hashFiles('current_gemfile.lock') }}
150
151
151
152
- name : Install dependencies
152
153
run : bundle install
@@ -163,7 +164,7 @@ jobs:
163
164
uses : actions/cache@v2
164
165
with :
165
166
path : tmp/parallel_runtime_rspec.log
166
- key : runtimes-rspec-${{ matrix.ruby }}-${{ matrix.deps }}-${{ hashFiles('tmp/parallel_runtime_rspec.log') }}
167
+ key : runtimes-rspec-${{ matrix.ruby.value }}-${{ matrix.deps }}-${{ hashFiles('tmp/parallel_runtime_rspec.log') }}
167
168
168
169
- name : Run RSpec tests
169
170
run : |
@@ -174,7 +175,7 @@ jobs:
174
175
uses : actions/cache@v2
175
176
with :
176
177
path : tmp/parallel_runtime_cucumber.log
177
- key : runtimes-cucumber-${{ matrix.ruby }}-${{ matrix.deps }}-${{ hashFiles('tmp/parallel_runtime_cucumber.log') }}
178
+ key : runtimes-cucumber-${{ matrix.ruby.value }}-${{ matrix.deps }}-${{ hashFiles('tmp/parallel_runtime_cucumber.log') }}
178
179
179
180
- name : Run Cucumber features
180
181
run : |
@@ -185,13 +186,13 @@ jobs:
185
186
- name : Format coverage
186
187
run : |
187
188
bin/prepare_coverage
188
- mv coverage/.resultset.json coverage/raw.${{ matrix.ruby }}.${{ matrix.deps }}.json
189
+ mv coverage/.resultset.json coverage/raw.${{ matrix.ruby.value }}.${{ matrix.deps }}.json
189
190
190
191
- name : Save partial coverage as an artifact
191
192
uses : actions/upload-artifact@v2
192
193
with :
193
194
name : coverage
194
- path : coverage/raw.${{ matrix.ruby }}.${{ matrix.deps }}.json
195
+ path : coverage/raw.${{ matrix.ruby.value }}.${{ matrix.deps }}.json
195
196
196
197
upload_coverage :
197
198
runs-on : ubuntu-20.04
0 commit comments