Skip to content

Commit b6e3e18

Browse files
committed
CI: Generate ruby matrix dynamically
1 parent 143253d commit b6e3e18

1 file changed

Lines changed: 18 additions & 5 deletions

File tree

.github/workflows/unit_tests.yaml

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,29 @@ env:
1717
CI: true
1818

1919
jobs:
20+
matrix:
21+
runs-on: ubuntu-24.04
22+
outputs:
23+
ruby: ${{ steps.ruby.outputs.versions }}
24+
steps:
25+
- uses: actions/checkout@v4
26+
- name: Install Ruby 3.4
27+
uses: ruby/setup-ruby@v1
28+
with:
29+
ruby-version: '3.4'
30+
bundler-cache: true
31+
#- name: Run RuboCop
32+
# run: bundle exec rake rubocop
33+
- id: ruby
34+
uses: voxpupuli/ruby-version@v1
35+
2036
linux_unit_tests:
37+
needs: matrix
2138
name: Ruby version
2239
strategy:
2340
fail-fast: false
2441
matrix:
25-
ruby:
26-
- '2.7'
27-
- '3.0'
28-
- '3.2'
29-
- '3.3'
42+
ruby: ${{ fromJSON(needs.matrix.outputs.ruby) }}
3043
runs-on: ubuntu-24.04
3144
steps:
3245
- name: Checkout current PR

0 commit comments

Comments
 (0)