Skip to content

Commit f999540

Browse files
committed
ci: more lessen jobs in regular test workflow
1 parent 2a26ade commit f999540

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

.github/workflows/test.yaml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,24 @@ jobs:
8181
run: bundle exec rake ${{ matrix.task || 'test' }}
8282
- name: Stop containers
8383
run: docker compose --progress quiet -f $DOCKER_COMPOSE_FILE down || true
84+
lint:
85+
name: Lint
86+
if: github.event_name != 'schedule' || github.repository == 'redis-rb/redis-cluster-client'
87+
timeout-minutes: 5
88+
runs-on: ubuntu-latest
89+
steps:
90+
- name: Check out code
91+
uses: actions/checkout@v4
92+
- name: Set up Ruby
93+
uses: ruby/setup-ruby@v1
94+
with:
95+
ruby-version: '3.4'
96+
bundler-cache: true
97+
- name: Run rubocop
98+
run: bundle exec rubocop
8499
nat-ted-env:
100+
if: github.event_name == 'schedule' && github.repository == 'redis-rb/redis-cluster-client'
85101
name: NAT-ted Environments
86-
if: github.event_name != 'schedule' || github.repository == 'redis-rb/redis-cluster-client'
87102
timeout-minutes: 5
88103
runs-on: ubuntu-latest
89104
env:
@@ -140,24 +155,9 @@ jobs:
140155
run: bundle exec rake test
141156
- name: Stop containers
142157
run: docker compose --progress quiet -f $DOCKER_COMPOSE_FILE down || true
143-
lint:
144-
name: Lint
145-
if: github.event_name != 'schedule' || github.repository == 'redis-rb/redis-cluster-client'
146-
timeout-minutes: 5
147-
runs-on: ubuntu-latest
148-
steps:
149-
- name: Check out code
150-
uses: actions/checkout@v4
151-
- name: Set up Ruby
152-
uses: ruby/setup-ruby@v1
153-
with:
154-
ruby-version: '3.4'
155-
bundler-cache: true
156-
- name: Run rubocop
157-
run: bundle exec rubocop
158158
benchmark:
159+
if: github.event_name == 'schedule' && github.repository == 'redis-rb/redis-cluster-client'
159160
name: Benchmark
160-
if: github.event_name != 'schedule' || github.repository == 'redis-rb/redis-cluster-client'
161161
timeout-minutes: 10
162162
runs-on: ubuntu-latest
163163
env:
@@ -217,8 +217,8 @@ jobs:
217217
- name: Stop containers
218218
run: docker compose --progress quiet -f $DOCKER_COMPOSE_FILE down || true
219219
ips:
220+
if: github.event_name == 'schedule' && github.repository == 'redis-rb/redis-cluster-client'
220221
name: IPS
221-
if: github.event_name != 'schedule' || github.repository == 'redis-rb/redis-cluster-client'
222222
timeout-minutes: 10
223223
runs-on: ubuntu-latest
224224
env:
@@ -250,8 +250,8 @@ jobs:
250250
- name: Stop containers
251251
run: docker compose --progress quiet -f $DOCKER_COMPOSE_FILE down || true
252252
profiling:
253+
if: github.event_name == 'schedule' && github.repository == 'redis-rb/redis-cluster-client'
253254
name: Profiling
254-
if: github.event_name != 'schedule' || github.repository == 'redis-rb/redis-cluster-client'
255255
timeout-minutes: 5
256256
runs-on: ubuntu-latest
257257
strategy:
@@ -289,8 +289,8 @@ jobs:
289289
- name: Stop containers
290290
run: docker compose --progress quiet -f $DOCKER_COMPOSE_FILE down || true
291291
massive:
292-
name: Massive Cluster
293292
if: github.event_name == 'schedule' && github.repository == 'redis-rb/redis-cluster-client'
293+
name: Massive Cluster
294294
timeout-minutes: 10
295295
runs-on: ubuntu-latest
296296
env:

0 commit comments

Comments
 (0)