Skip to content

Commit 004a0bf

Browse files
committed
Use reusing workflow for Ruby versions
1 parent 0e1aa11 commit 004a0bf

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/test.yml

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

55
jobs:
6+
ruby-versions:
7+
uses: ruby/actions/.github/workflows/ruby_versions.yml@master
8+
with:
9+
engine: cruby
10+
min_version: 2.5
11+
612
build:
13+
needs: ruby-versions
714
name: build (${{ matrix.ruby }} / ${{ matrix.os }})
815
strategy:
916
matrix:
10-
ruby: [ 2.7, 2.6, 2.5, head ]
17+
ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
1118
os: [ ubuntu-latest, macos-latest, windows-latest ]
1219
exclude:
1320
- { os: macos-latest, ruby: '2.5' }

0 commit comments

Comments
 (0)