Skip to content

Commit b78faa2

Browse files
committed
Split the Truffle CI jobs
1 parent fe04273 commit b78faa2

File tree

1 file changed

+45
-8
lines changed

1 file changed

+45
-8
lines changed

.github/workflows/test.yaml

Lines changed: 45 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
jobs:
1111
lint:
1212
name: Rubocop
13-
timeout-minutes: 30
13+
timeout-minutes: 15
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: Check out code
@@ -29,16 +29,15 @@ jobs:
2929

3030
rubies:
3131
name: Ruby
32-
timeout-minutes: 30
32+
timeout-minutes: 15
3333
strategy:
3434
fail-fast: false
3535
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"]
3737
runs-on: ubuntu-latest
3838
env:
3939
LOW_TIMEOUT: "0.01"
4040
REDIS_BRANCH: "7.0"
41-
TRUFFLERUBYOPT: "--engine.Mode=latency"
4241
steps:
4342
- name: Check out code
4443
uses: actions/checkout@v3
@@ -65,9 +64,47 @@ jobs:
6564
- name: Shutting down Redis
6665
run: make stop
6766

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+
68105
drivers:
69106
name: Driver
70-
timeout-minutes: 30
107+
timeout-minutes: 15
71108
strategy:
72109
fail-fast: false
73110
matrix:
@@ -105,7 +142,7 @@ jobs:
105142

106143
redises:
107144
name: Redis
108-
timeout-minutes: 30
145+
timeout-minutes: 15
109146
strategy:
110147
fail-fast: false
111148
matrix:
@@ -142,7 +179,7 @@ jobs:
142179

143180
sentinel:
144181
name: Sentinel
145-
timeout-minutes: 30
182+
timeout-minutes: 15
146183
strategy:
147184
fail-fast: false
148185
runs-on: ubuntu-latest
@@ -177,7 +214,7 @@ jobs:
177214

178215
cluster:
179216
name: Cluster
180-
timeout-minutes: 30
217+
timeout-minutes: 15
181218
strategy:
182219
fail-fast: false
183220
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)