|
81 | 81 | run: bundle exec rake ${{ matrix.task || 'test' }} |
82 | 82 | - name: Stop containers |
83 | 83 | 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 |
84 | 99 | nat-ted-env: |
| 100 | + if: github.event_name == 'schedule' && github.repository == 'redis-rb/redis-cluster-client' |
85 | 101 | name: NAT-ted Environments |
86 | | - if: github.event_name != 'schedule' || github.repository == 'redis-rb/redis-cluster-client' |
87 | 102 | timeout-minutes: 5 |
88 | 103 | runs-on: ubuntu-latest |
89 | 104 | env: |
@@ -140,24 +155,9 @@ jobs: |
140 | 155 | run: bundle exec rake test |
141 | 156 | - name: Stop containers |
142 | 157 | 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 |
158 | 158 | benchmark: |
| 159 | + if: github.event_name == 'schedule' && github.repository == 'redis-rb/redis-cluster-client' |
159 | 160 | name: Benchmark |
160 | | - if: github.event_name != 'schedule' || github.repository == 'redis-rb/redis-cluster-client' |
161 | 161 | timeout-minutes: 10 |
162 | 162 | runs-on: ubuntu-latest |
163 | 163 | env: |
@@ -217,8 +217,8 @@ jobs: |
217 | 217 | - name: Stop containers |
218 | 218 | run: docker compose --progress quiet -f $DOCKER_COMPOSE_FILE down || true |
219 | 219 | ips: |
| 220 | + if: github.event_name == 'schedule' && github.repository == 'redis-rb/redis-cluster-client' |
220 | 221 | name: IPS |
221 | | - if: github.event_name != 'schedule' || github.repository == 'redis-rb/redis-cluster-client' |
222 | 222 | timeout-minutes: 10 |
223 | 223 | runs-on: ubuntu-latest |
224 | 224 | env: |
@@ -250,8 +250,8 @@ jobs: |
250 | 250 | - name: Stop containers |
251 | 251 | run: docker compose --progress quiet -f $DOCKER_COMPOSE_FILE down || true |
252 | 252 | profiling: |
| 253 | + if: github.event_name == 'schedule' && github.repository == 'redis-rb/redis-cluster-client' |
253 | 254 | name: Profiling |
254 | | - if: github.event_name != 'schedule' || github.repository == 'redis-rb/redis-cluster-client' |
255 | 255 | timeout-minutes: 5 |
256 | 256 | runs-on: ubuntu-latest |
257 | 257 | strategy: |
@@ -289,8 +289,8 @@ jobs: |
289 | 289 | - name: Stop containers |
290 | 290 | run: docker compose --progress quiet -f $DOCKER_COMPOSE_FILE down || true |
291 | 291 | massive: |
292 | | - name: Massive Cluster |
293 | 292 | if: github.event_name == 'schedule' && github.repository == 'redis-rb/redis-cluster-client' |
| 293 | + name: Massive Cluster |
294 | 294 | timeout-minutes: 10 |
295 | 295 | runs-on: ubuntu-latest |
296 | 296 | env: |
|
0 commit comments