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,16 +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
39
LOW_TIMEOUT : " 0.01"
40
40
REDIS_BRANCH : " 7.0"
41
- TRUFFLERUBYOPT : " --engine.Mode=latency"
42
41
steps :
43
42
- name : Check out code
44
43
uses : actions/checkout@v3
65
64
- name : Shutting down Redis
66
65
run : make stop
67
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
+
68
105
drivers :
69
106
name : Driver
70
- timeout-minutes : 30
107
+ timeout-minutes : 15
71
108
strategy :
72
109
fail-fast : false
73
110
matrix :
@@ -105,7 +142,7 @@ jobs:
105
142
106
143
redises :
107
144
name : Redis
108
- timeout-minutes : 30
145
+ timeout-minutes : 15
109
146
strategy :
110
147
fail-fast : false
111
148
matrix :
@@ -142,7 +179,7 @@ jobs:
142
179
143
180
sentinel :
144
181
name : Sentinel
145
- timeout-minutes : 30
182
+ timeout-minutes : 15
146
183
strategy :
147
184
fail-fast : false
148
185
runs-on : ubuntu-latest
@@ -177,7 +214,7 @@ jobs:
177
214
178
215
cluster :
179
216
name : Cluster
180
- timeout-minutes : 30
217
+ timeout-minutes : 15
181
218
strategy :
182
219
fail-fast : false
183
220
runs-on : ubuntu-latest
0 commit comments