10
10
jobs :
11
11
lint :
12
12
name : Rubocop
13
- timeout-minutes : 30
13
+ timeout-minutes : 15
14
14
runs-on : ubuntu-latest
15
15
steps :
16
16
- name : Check out code
@@ -29,19 +29,15 @@ jobs:
29
29
30
30
rubies :
31
31
name : Ruby
32
- timeout-minutes : 30
32
+ timeout-minutes : 15
33
33
strategy :
34
34
fail-fast : false
35
35
matrix :
36
- ruby : ["3.1", "3.0", "2.7", "2.6", "2.5", "jruby-9.3.6.0", "truffleruby-22.2.0" ]
36
+ ruby : ["3.1", "3.0", "2.7", "2.6", "2.5", "jruby-9.3.6.0"]
37
37
runs-on : ubuntu-latest
38
38
env :
39
- VERBOSE : " true"
40
- TIMEOUT : " 30"
41
39
LOW_TIMEOUT : " 0.01"
42
- DRIVER : ruby
43
40
REDIS_BRANCH : " 7.0"
44
- TRUFFLERUBYOPT : " --engine.Mode=latency"
45
41
steps :
46
42
- name : Check out code
47
43
uses : actions/checkout@v3
@@ -68,17 +64,53 @@ jobs:
68
64
- name : Shutting down Redis
69
65
run : make stop
70
66
67
+ truffle :
68
+ name : TruffleRuby
69
+ timeout-minutes : 15
70
+ strategy :
71
+ fail-fast : false
72
+ matrix :
73
+ suite : ["redis", "distributed"]
74
+ runs-on : ubuntu-latest
75
+ env :
76
+ LOW_TIMEOUT : " 0.01"
77
+ REDIS_BRANCH : " 7.0"
78
+ TRUFFLERUBYOPT : " --engine.Mode=latency"
79
+ steps :
80
+ - name : Check out code
81
+ uses : actions/checkout@v3
82
+ - name : Print environment variables
83
+ run : |
84
+ echo "TIMEOUT=${TIMEOUT}"
85
+ echo "LOW_TIMEOUT=${LOW_TIMEOUT}"
86
+ echo "DRIVER=${DRIVER}"
87
+ echo "REDIS_BRANCH=${REDIS_BRANCH}"
88
+ - name : Set up Ruby
89
+ uses : ruby/setup-ruby@v1
90
+ with :
91
+ ruby-version : truffleruby-22.2.0
92
+ bundler-cache : true
93
+ - name : Cache local temporary directory
94
+ uses : actions/cache@v3
95
+ with :
96
+ path : tmp
97
+ key : " local-tmp-redis-7.0-on-ubuntu-latest"
98
+ - name : Booting up Redis
99
+ run : make start
100
+ - name : Test
101
+ run : bundle exec rake test:${{ matrix.suite }}
102
+ - name : Shutting down Redis
103
+ run : make stop
104
+
71
105
drivers :
72
106
name : Driver
73
- timeout-minutes : 30
107
+ timeout-minutes : 15
74
108
strategy :
75
109
fail-fast : false
76
110
matrix :
77
111
driver : ["hiredis"]
78
112
runs-on : ubuntu-latest
79
113
env :
80
- VERBOSE : " true"
81
- TIMEOUT : " 30"
82
114
LOW_TIMEOUT : " 0.01"
83
115
DRIVER : ${{ matrix.driver }}
84
116
REDIS_BRANCH : " 7.0"
@@ -110,17 +142,14 @@ jobs:
110
142
111
143
redises :
112
144
name : Redis
113
- timeout-minutes : 30
145
+ timeout-minutes : 15
114
146
strategy :
115
147
fail-fast : false
116
148
matrix :
117
149
redis : ["6.2", "6.0", "5.0"]
118
150
runs-on : ubuntu-latest
119
151
env :
120
- VERBOSE : " true"
121
- TIMEOUT : " 30"
122
152
LOW_TIMEOUT : " 0.14"
123
- DRIVER : ruby
124
153
REDIS_BRANCH : ${{ matrix.redis }}
125
154
steps :
126
155
- name : Check out code
@@ -150,15 +179,12 @@ jobs:
150
179
151
180
sentinel :
152
181
name : Sentinel
153
- timeout-minutes : 30
182
+ timeout-minutes : 15
154
183
strategy :
155
184
fail-fast : false
156
185
runs-on : ubuntu-latest
157
186
env :
158
- VERBOSE : " true"
159
- TIMEOUT : " 30"
160
187
LOW_TIMEOUT : " 0.14"
161
- DRIVER : ruby
162
188
REDIS_BRANCH : " 7.0"
163
189
steps :
164
190
- name : Check out code
@@ -188,15 +214,13 @@ jobs:
188
214
189
215
cluster :
190
216
name : Cluster
191
- timeout-minutes : 30
217
+ timeout-minutes : 15
192
218
strategy :
193
219
fail-fast : false
194
220
runs-on : ubuntu-latest
195
221
env :
196
- VERBOSE : " true"
197
- TIMEOUT : " 30"
222
+ TIMEOUT : " 15"
198
223
LOW_TIMEOUT : " 0.14"
199
- DRIVER : ruby
200
224
REDIS_BRANCH : " 7.0"
201
225
BUNDLE_GEMFILE : redis_cluster/Gemfile
202
226
steps :
0 commit comments