From 404143eeb3339c256eda84a619fb4d4f4ea33dec Mon Sep 17 00:00:00 2001 From: nick evans Date: Thu, 16 May 2024 09:16:01 -0400 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20Split=20CI=20matrix.gemfile=20into?= =?UTF-8?q?=20resque=20and=20redis?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ruby.yml | 37 +++++++++++++++++++++---------------- 1 file changed, 21 insertions(+), 16 deletions(-) diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml index b3214ff..cb083dc 100644 --- a/.github/workflows/ruby.yml +++ b/.github/workflows/ruby.yml @@ -5,7 +5,7 @@ on: [push, workflow_dispatch] jobs: build: name: >- - ${{ matrix.os }} ${{ matrix.ruby }} ${{ matrix.gemfile }} + ruby ${{ matrix.ruby }}, resque ${{ matrix.resque }}, redis ${{ matrix.redis }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 10 strategy: @@ -13,30 +13,35 @@ jobs: matrix: os: [ ubuntu-22.04 ] ruby: [ "2.4", "2.5", "2.6", "2.7", "3.0", "3.1", "3.2", "3.3" ] - gemfile: - - resque_1.22_redis_2.0 - - resque_1.23_redis_3.0 - - resque_1.24_redis_3.0 - - resque_1.25_redis_3.0 - - resque_1.27_redis_3.3 - - resque_2.0_redis_4.0 - - resque_2.1_redis_4.4 - - resque_2.2_redis_4.6 - - resque_2.3_redis_4.7 - - resque_2.4_redis_4.8 - - resque_2.5_redis_5.0 - - resque_2.6_redis_5.2 + resque: [ "1.22", "1.23", "1.24", "1.25", "1.26", "1.27", "2.0", "2.1", "2.2", "2.3", "2.4", "2.5", "2.6" ] + include: + - { resque: "1.22", redis: "2.0" } + - { resque: "1.23", redis: "3.0" } + - { resque: "1.24", redis: "3.0" } + - { resque: "1.25", redis: "3.0" } + - { resque: "1.26", redis: "3.2" } + - { resque: "1.27", redis: "3.3" } + - { resque: "2.0", redis: "4.0" } + - { resque: "2.1", redis: "4.4" } + - { resque: "2.2", redis: "4.6" } + - { resque: "2.3", redis: "4.7" } + - { resque: "2.4", redis: "4.8" } + - { resque: "2.5", redis: "5.0" } + - { resque: "2.6", redis: "5.2" } + - os: ubuntu-20.04 ruby: "3.3" - gemfile: resque_2.6_redis_5.2 + resque: "2.6" + redis: "5.2" + services: redis: image: redis env: - BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile + BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/resque_${{ matrix.resque }}_redis_${{ matrix.redis }}.gemfile steps: - uses: actions/checkout@v3