Skip to content

Commit 5752824

Browse files
committed
Use ruby_versions.yml
1 parent c97016c commit 5752824

1 file changed

Lines changed: 14 additions & 5 deletions

File tree

.github/workflows/test.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,30 @@ permissions:
88
contents: read
99

1010
jobs:
11+
ruby-versions:
12+
uses: ruby/actions/.github/workflows/ruby_versions.yml@master
13+
with:
14+
engine: cruby
15+
min_version: 2.7
16+
1117
test:
18+
needs: ruby-versions
19+
name: ${{ matrix.os }} ${{ matrix.ruby }}
1220
runs-on: ${{ matrix.os }}
1321
strategy:
1422
fail-fast: false
1523
matrix:
16-
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
17-
ruby-version: ['2.7', '3.0', '3.1', '3.2', '3.3', '3.4', '4.0']
18-
19-
name: Ruby ${{ matrix.ruby-version }} on ${{ matrix.os }}
24+
ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
25+
os:
26+
- ubuntu-latest
27+
- macos-latest
28+
- windows-latest
2029
steps:
2130
- uses: actions/checkout@v6
2231
- name: Set up Ruby
2332
uses: ruby/setup-ruby@v1
2433
with:
25-
ruby-version: ${{ matrix.ruby-version }}
34+
ruby-version: ${{ matrix.ruby }}
2635
bundler-cache: true
2736

2837
- name: Replace libcurl.dll

0 commit comments

Comments
 (0)