Skip to content

Commit 3b34a7b

Browse files
authored
ci: use ruby-versions to keep up-to-date (#5385)
**Which issue(s) this PR fixes**: Fixes # **What this PR does / why we need it**: Keeping matrix up-to-date. Now: * ubuntu-latest: 3.2, 3.3, 3.4, 4.0 * macos-latest: 3.2, 3.3, 3.4, 4.0 * widows-latest: 3.2, 3.3, 3.4, 4.0 * widows-11-arm: 3.4, 4.0 **Docs Changes**: N/A **Release Note**: N/A Signed-off-by: Kentaro Hayashi <hayashi@clear-code.com>
1 parent 0f05460 commit 3b34a7b

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

.github/workflows/test.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,22 @@ concurrency:
2020
permissions: read-all
2121

2222
jobs:
23+
ruby-versions:
24+
uses: ruby/actions/.github/workflows/ruby_versions.yml@master
25+
with:
26+
engine: cruby
27+
min_version: 3.2
2328
test:
29+
needs: ruby-versions
2430
runs-on: ${{ matrix.os }}
2531
continue-on-error: false
2632
strategy:
2733
fail-fast: false
2834
matrix:
2935
os: ['ubuntu-latest', 'macos-latest', 'windows-latest', 'windows-11-arm']
30-
ruby-version: ['4.0', '3.4', '3.3', '3.2']
36+
ruby-version: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
3137
exclude:
38+
- ruby-version: head
3239
- os: 'windows-11-arm'
3340
ruby-version: '3.3'
3441
- os: 'windows-11-arm'
@@ -51,11 +58,14 @@ jobs:
5158
run: bundle exec rake test TESTOPTS="-v --report-slow-tests --no-show-detail-immediately"
5259

5360
test-windows-service:
61+
needs: ruby-versions
5462
runs-on: windows-latest
5563
strategy:
5664
fail-fast: false
5765
matrix:
58-
ruby-version: ['4.0', '3.4', '3.3', '3.2']
66+
ruby-version: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
67+
exclude:
68+
- ruby-version: head
5969
name: Windows service (Ruby ${{ matrix.ruby-version }})
6070
steps:
6171
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

0 commit comments

Comments
 (0)