Skip to content

Commit b6764e8

Browse files
committed
Use reusable workflow
1 parent c03cebb commit b6764e8

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/test.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,17 @@ name: test
33
on: [push, pull_request]
44

55
jobs:
6+
ruby-versions:
7+
uses: ruby/actions/.github/workflows/ruby_versions.yml@master
8+
with:
9+
min_version: 2.5
10+
611
build:
12+
needs: ruby-versions
713
name: build (${{ matrix.ruby }} / ${{ matrix.os }})
814
strategy:
915
matrix:
10-
ruby: [ 3.2, 3.1, '3.0', 2.7, 2.6, 2.5, head, truffleruby-head ]
16+
ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
1117
os: [ ubuntu-latest, macos-latest ]
1218
runs-on: ${{ matrix.os }}
1319
steps:

0 commit comments

Comments
 (0)