Skip to content

Commit 0b94068

Browse files
authored
Merge pull request #46 from ruby/use-reusable-workflow
Use re-using workflow
2 parents f839626 + efb4f22 commit 0b94068

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/test.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,18 @@ 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+
engine: cruby
10+
min_version: 2.4
11+
612
test:
13+
needs: ruby-versions
14+
name: Test with (${{ matrix.ruby }} / ${{ matrix.os }})
715
strategy:
816
matrix:
9-
ruby: ['3.1', '3.0', '2.7', '2.6', '2.5', '2.4', head ]
17+
ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
1018
os: [ubuntu-latest, macos-latest]
1119
runs-on: ${{ matrix.os }}
1220
steps:

0 commit comments

Comments
 (0)